/* style/login.css */

:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --accent-color: #CC0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --border-color: #e0e0e0;
}

.page-login {
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark);
    padding-top: 100px; /* Desktop: Ensure content is below fixed header */
}

.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
    text-align: center;
    padding: 80px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    border-bottom: 5px solid var(--secondary-color);
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.page-login__hero-cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-login__hero-cta-button:hover {
    background-color: #ff3333; /* Slightly darker red */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-login__form-section > .page-login__container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-login__form-card {
    background: rgba(255, 255, 255, 0.08); /* Light transparent background for form */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 350px;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__form-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

.page-login__form-group {
    margin-bottom: 25px;
}

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-light);
}

.page-login__form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-light);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.3);
    outline: none;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: var(--secondary-color);
}

.page-login__checkbox-label {
    color: var(--text-light);
}

.page-login__forgot-password {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #ffd700; /* Brighter gold */
    text-decoration: underline;
}

.page-login__submit-button {
    width: 100%;
    padding: 15px 20px;
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__submit-button:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: var(--text-light);
}

.page-login__register-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.page-login__register-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-login__form-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
    max-width: 50%;
}

.page-login__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    border-top: 5px solid var(--secondary-color);
}

.page-login__section-title {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--secondary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-login__benefit-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__benefit-item:hover {
    transform: translateY(-8px);
    background-color: rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.5));
}

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-login__benefit-description {
    font-size: 1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-login__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-login__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
}

.page-login__cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-login__cta-button:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2.4em;
    }
    .page-login__form-section > .page-login__container {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__form-card {
        max-width: 100%;
    }
    .page-login__form-image-wrapper {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: 80px !important; /* Mobile: Ensure content is below fixed header */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-login__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-login__hero-section {
        padding: 60px 15px;
    }

    .page-login__hero-title {
        font-size: 2.2em;
    }

    .page-login__hero-subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .page-login__hero-cta-button,
    .page-login__submit-button,
    .page-login__cta-button--secondary {
        font-size: 1.1em;
        padding: 14px 30px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__form-section {
        padding: 40px 0;
    }

    .page-login__form-card {
        padding: 30px;
    }

    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-login__form-group {
        margin-bottom: 20px;
    }

    .page-login__form-label {
        font-size: 1em;
    }

    .page-login__form-input {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 25px;
        gap: 10px;
    }

    .page-login__benefits-section {
        padding: 60px 0;
    }

    .page-login__section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .page-login__benefit-item {
        padding: 25px;
    }

    .page-login__benefit-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .page-login__benefit-title {
        font-size: 1.3em;
    }

    .page-login__cta-section {
        padding: 60px 15px;
    }

    .page-login__cta-title {
        font-size: 2em;
    }

    .page-login__cta-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .page-login img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-login__form-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 0;
      padding-right: 0;
      overflow: hidden !important;
    }
    
    .page-login__benefits-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__hero-subtitle {
        font-size: 1em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__form-title {
        font-size: 1.5em;
    }
    .page-login__cta-title {
        font-size: 1.8em;
    }
    .page-login__cta-description {
        font-size: 1em;
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
}