/* style/login.css */

/* Custom Properties for Colors */
:root {
    --bg-dark: #08160F;
    --bg-card: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-login {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-dark); /* Body background from shared, this is for consistency */
}

.page-login__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-login__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-login__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.page-login__card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow);
}

.page-login__card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px;
    background-color: var(--deep-green);
    overflow: hidden;
}

.page-login__hero-image {
    position: relative;
    width: 100%;
    height: 675px; /* Fixed height for desktop */
    object-fit: cover;
    z-index: 1;
    display: block;
    margin-bottom: 40px;
    border-radius: 10px;
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: center;
    background-color: rgba(17, 39, 27, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-top: -100px; /* Overlap slightly with image for visual flow */
}

.page-login__main-title {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-login__description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-login__form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: bold;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--glow);
    border: 2px solid var(--glow);
}

.page-login__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
}

.page-login__forgot-password {
    display: block;
    margin-top: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
}

.page-login__forgot-password:hover {
    color: var(--glow);
}

/* Why Choose Us Section */
.page-login__why-choose-us {
    background-color: var(--bg-dark);
    padding-top: 80px;
}

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

.page-login__feature-title {
    color: var(--gold);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-login__feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Guide Section */
.page-login__guide-section {
    background-color: var(--deep-green);
}

.page-login__guide-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-login__step-item {
    flex: 1 1 300px;
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
}

.page-login__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--btn-gradient);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
    color: var(--gold);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-login__step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-login__guide-image {
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    background-color: var(--bg-dark);
}

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

.page-login__trouble-title {
    color: var(--gold);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-login__trouble-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-login__support-button {
    margin-top: 20px;
}

/* Entertainment Section */
.page-login__entertainment-section {
    background-color: var(--deep-green);
}

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

.page-login__category-item {
    text-align: center;
    padding: 20px;
}

.page-login__category-image {
    width: 100%;
    height: 200px; /* Consistent height for category images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-login__category-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-login__category-title a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__category-title a:hover {
    color: var(--glow);
}

.page-login__category-description {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.page-login__explore-button {
    margin-top: 20px;
}

/* Promotions Section */
.page-login__promotions-section {
    background-color: var(--bg-dark);
}

.page-login__view-promotions-button {
    margin-top: 20px;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: var(--deep-green);
}

.page-login__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-login__faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1em;
    outline: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
    background-color: rgba(87, 227, 141, 0.05);
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--gold);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow);
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−';
}

.page-login__faq-answer {
    padding: 15px 25px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--divider);
}

/* App Download Section */
.page-login__app-download-section {
    background-color: var(--bg-dark);
}

.page-login__download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-login__download-app-button {
    min-width: 250px;
}

.page-login__app-image {
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-image {
        height: 500px;
    }
    .page-login__hero-content {
        padding: 30px;
    }
    .page-login__section {
        padding: 40px 15px;
    }
    .page-login__main-title {
        font-size: clamp(28px, 4.5vw, 40px);
    }
    .page-login__description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Allow height to adjust for smaller screens */
        object-fit: contain; /* Ensure image is fully visible */
    }

    .page-login__hero-content {
        margin-top: 20px; /* Reduce negative margin on mobile */
        padding: 25px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-login__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-login__description {
        font-size: 1em;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .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__download-buttons {
        flex-direction: column;
    }

    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__hero-section,
    .page-login__hero-content,
    .page-login__form,
    .page-login__features-grid,
    .page-login__step-item,
    .page-login__guide-steps,
    .page-login__trouble-grid,
    .page-login__game-categories,
    .page-login__download-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-login__hero-section {
        padding-top: 10px !important;
    }

    .page-login__guide-steps {
        flex-direction: column;
    }
    .page-login__step-item {
        flex: 1 1 auto;
    }
    .page-login__game-categories {
        grid-template-columns: 1fr;
    }
    .page-login__category-image {
        height: auto;
    }

    .page-login__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-login__section {
        padding: 30px 10px;
    }
    .page-login__hero-content {
        padding: 20px;
    }
    .page-login__main-title {
        font-size: clamp(22px, 8vw, 30px);
    }
    .page-login__description {
        font-size: 0.95em;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    .page-login__form-group {
        margin-bottom: 15px;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__section-title {
        font-size: clamp(24px, 6vw, 32px);
    }
    .page-login__text-block {
        font-size: 0.95em;
    }
    .page-login__card {
        padding: 20px;
    }
    .page-login__feature-title,
    .page-login__step-title,
    .page-login__trouble-title,
    .page-login__category-title {
        font-size: 1.2em;
    }
    .page-login__faq-item summary {
        font-size: 0.9em;
    }
    .page-login__faq-answer {
        font-size: 0.9em;
    }
}