/* style/login.css */

/* Base styles for the login page */
.page-login {
    color: #FFF6D6; /* Text Main color, contrasts with #0A0A0A background */
    background-color: #0A0A0A; /* Background color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px; /* Space below content area */
    padding-top: var(--header-offset, 120px); /* For fixed header */
}

.page-login__hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image to ensure text readability */
}

.page-login__hero-content-area {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 0;
}

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

.page-login__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
    color: #FFD36B; /* Glow color for main title */
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-login__intro-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6;
}

.page-login__form-wrapper {
    background: #111111; /* Card B G */
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #3A2A12; /* Border color */
}

.page-login__form-title {
    font-size: 2em;
    color: #F2C14E; /* Main color */
    margin-bottom: 30px;
    font-weight: bold;
}

.page-login__login-form {
    text-align: left;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #FFF6D6;
    font-weight: bold;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 5px;
    background-color: #0A0A0A; /* Background color */
    color: #FFF6D6;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.page-login__btn-primary {
    display: block;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #ffffff; /* Button text always white */
    border: none;
}

.page-login__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-login__login-button {
    width: 100%;
}

.page-login__forgot-password-link {
    color: #FFD36B; /* Glow color */
    text-decoration: none;
    text-align: center;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #F2C14E; /* Main color */
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #FFF6D6;
}

.page-login__register-link {
    color: #FFD36B; /* Glow color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #F2C14E; /* Main color */
}

/* General Section Styling */
.page-login__section {
    padding: 60px 0;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #FFF6D6;
}

/* Why Choose Section */
.page-login__why-choose {
    background-color: #0A0A0A;
}

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

.page-login__feature-card {
    background: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF6D6;
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-login__feature-icon {
    width: 100%; /* Ensure full width */
    max-width: 250px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    display: block; /* Ensures proper spacing */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
    border-radius: 5px;
}

.page-login__feature-title {
    font-size: 1.5em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__feature-text {
    font-size: 1em;
    color: #FFF6D6;
}

/* Game Access Section */
.page-login__game-access {
    background-color: #0A0A0A;
}

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

.page-login__game-card {
    background: #111111; /* Card B G */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border color */
    text-decoration: none;
    color: #FFF6D6;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-login__game-title {
    font-size: 1.4em;
    color: #F2C14E; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__game-text {
    font-size: 0.95em;
    color: #FFF6D6;
}

/* App Download Section */
.page-login__app-download {
    background-color: #0A0A0A;
}

.page-login__app-download-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.page-login__app-text-block {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-login__app-subtitle {
    font-size: 1.8em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 20px;
}

.page-login__app-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-login__app-features-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23F2C14E"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
    background-size: 20px 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #FFF6D6;
    font-size: 1.1em;
}

.page-login__download-button {
    width: auto;
    max-width: 300px; /* Constrain button width */
}

.page-login__app-version-info {
    margin-top: 20px;
    font-size: 0.9em;
    color: rgba(255, 246, 214, 0.8);
}

.page-login__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.page-login__app-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

/* Legitimacy Section */
.page-login__legitimacy {
    background-color: #0A0A0A;
}

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

.page-login__legitimacy-item {
    background: #111111; /* Card B G */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border color */
    text-align: left;
    color: #FFF6D6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__legitimacy-subtitle {
    font-size: 1.5em;
    color: #FFD36B; /* Glow color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__legitimacy-text {
    font-size: 1em;
    color: #FFF6D6;
}

.page-login__link {
    color: #FFD36B; /* Glow color */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-login__link:hover {
    color: #F2C14E; /* Main color */
}

/* CTA Register Section */
.page-login__cta-register {
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Gradient background */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

.page-login__cta-register .page-login__section-title {
    color: #333333; /* Dark text for light background */
}

.page-login__cta-register .page-login__section-description {
    color: #333333; /* Dark text for light background */
}

.page-login__cta-content {
    max-width: 900px;
}

.page-login__register-cta-button {
    margin-top: 30px;
    display: inline-block; /* For better centering */
    max-width: 300px;
    width: 100%;
}

.page-login__cta-subtext {
    margin-top: 20px;
    font-size: 1em;
    color: #333333; /* Dark text for light background */
}

.page-login__cta-subtext .page-login__link {
    color: #0A0A0A; /* Darker link for contrast */
}

.page-login__cta-subtext .page-login__link:hover {
    color: #333333;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

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

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-login__intro-text {
        font-size: 1em;
    }

    .page-login__form-wrapper {
        padding: 30px 20px;
    }

    .page-login__form-title {
        font-size: 1.8em;
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__btn-primary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__section-title {
        font-size: 1.8em;
    }

    .page-login__section-description {
        font-size: 0.95em;
    }

    .page-login__features-grid,
    .page-login__game-links-grid,
    .page-login__legitimacy-content {
        grid-template-columns: 1fr;
    }

    .page-login__feature-card,
    .page-login__game-card,
    .page-login__legitimacy-item {
        padding: 20px;
    }

    .page-login__feature-icon,
    .page-login__app-image {
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-login__app-download-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-login__app-text-block,
    .page-login__app-image-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .page-login__section,
    .page-login__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

/* Ensure no filter on images */
.page-login img {
    filter: none; /* No CSS filter on content images */
}
/* Except for hero image for darkening effect */
.page-login__hero-image {
    filter: brightness(0.4); /* Darken hero image for text readability */
}

/* Contrast Fixes (as per instructions) */
.page-login__dark-bg {
  color: #ffffff; /* Deep contrast for dark backgrounds */
}

.page-login__light-bg {
  color: #333333; /* Deep contrast for light backgrounds */
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* Button text always white */
}

.page-login__cta-register {
    color: #333333; /* Dark text for light background */
}
.page-login__cta-register .page-login__section-title,
.page-login__cta-register .page-login__section-description,
.page-login__cta-register .page-login__cta-subtext {
    color: #333333;
}
.page-login__cta-register .page-login__link {
    color: #0A0A0A; /* Dark link on light background */
}
.page-login__cta-register .page-login__link:hover {
    color: #333333;
}