/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    color: #FFF5E1; /* Text Main color, suitable for dark background */
    background-color: #B71C1C; /* Custom Background color */
    line-height: 1.6;
}

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

.page-login__hero-section {
    text-align: center;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 60px;
    background: linear-gradient(180deg, #C91F17 0%, #E53935 100%); /* Main and Aux colors for hero background */
}

.page-login__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* H1 size with clamp */
    font-weight: 700;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__subtitle {
    font-size: 1.2rem;
    color: #FFF5E1; /* Text Main */
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-login__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-login__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button color */
    color: #7A0E0E; /* Deep Red for contrast */
}

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

.page-login__btn-secondary {
    background-color: transparent;
    border: 2px solid #F2B544; /* Custom Border color */
    color: #FFF5E1; /* Text Main */
}

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

.page-login__btn-gold {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button color */
    color: #7A0E0E; /* Deep Red for contrast */
    border: 2px solid #F2B544; /* Custom Border color */
}

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

.page-login__form-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Custom Background color */
}

.page-login__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F4D34D; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-login__section-description {
    font-size: 1.1rem;
    color: #FFF5E1; /* Text Main */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.page-login__login-card {
    background-color: #D32F2F; /* Custom Card BG color */
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Custom Border color */
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__form-group {
    display: flex;
    flex-direction: column;
}

.page-login__form-label {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 8px;
    font-weight: 600;
}

.page-login__form-input {
    padding: 12px 15px;
    border: 1px solid #F2B544; /* Custom Border color */
    border-radius: 6px;
    background-color: #7A0E0E; /* Deep Red for input background */
    color: #FFF5E1; /* Text Main */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: rgba(255, 245, 225, 0.7); /* Lighter Text Main for placeholder */
}

.page-login__form-input:focus {
    border-color: #FFCC66; /* Glow color on focus */
    box-shadow: 0 0 8px rgba(255, 204, 102, 0.5);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

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

.page-login__checkbox {
    width: 18px;
    height: 18px;
    accent-color: #F4D34D; /* Gold for checkbox accent */
    cursor: pointer;
}

.page-login__checkbox-label {
    color: #FFF5E1; /* Text Main */
}

.page-login__forgot-password {
    color: #F4D34D; /* Gold for link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #FFCC66; /* Glow color on hover */
    text-decoration: underline;
}

.page-login__btn-submit {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button color */
    color: #7A0E0E; /* Deep Red for contrast */
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

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

.page-login__register-prompt {
    text-align: center;
    color: #FFF5E1; /* Text Main */
    margin-top: 25px;
    font-size: 1rem;
}

.page-login__register-prompt a {
    color: #F4D34D; /* Gold for link */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-prompt a:hover {
    color: #FFCC66; /* Glow color on hover */
    text-decoration: underline;
}

.page-login__benefits-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Custom Background color */
}

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

.page-login__benefit-item {
    background-color: #D32F2F; /* Custom Card BG color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Custom Border color */
}

.page-login__benefit-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #F4D34D; /* Gold border */
}

.page-login__benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F4D34D; /* Gold for titles */
    margin-bottom: 15px;
}

.page-login__benefit-text {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
}

.page-login__security-info {
    padding: 60px 0;
    background-color: #7A0E0E; /* Deep Red background for security section */
}

.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for items */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(244, 211, 77, 0.5); /* Transparent Gold border */
}

.page-login__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #F4D34D; /* Gold for titles */
    margin-bottom: 15px;
}

.page-login__feature-text {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
}

.page-login__feature-text a {
    color: #F4D34D; /* Gold for links */
    text-decoration: none;
}

.page-login__feature-text a:hover {
    color: #FFCC66; /* Glow color on hover */
    text-decoration: underline;
}

.page-login__security-note {
    font-size: 1rem;
    color: #FFCC66; /* Glow color for important notes */
    text-align: center;
    margin-top: 40px;
    font-weight: 500;
}

.page-login__troubleshooting-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Custom Background color */
}

.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-login__list-item {
    background-color: #D32F2F; /* Custom Card BG color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Custom Border color */
}

.page-login__list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #F4D34D; /* Gold for titles */
    margin-bottom: 10px;
}

.page-login__list-text {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
}

.page-login__list-text a {
    color: #F4D34D; /* Gold for links */
    text-decoration: none;
}

.page-login__list-text a:hover {
    color: #FFCC66; /* Glow color on hover */
    text-decoration: underline;
}

.page-login__cta-download-section {
    padding: 60px 0;
    text-align: center;
    background-color: #7A0E0E; /* Deep Red background */
}

.page-login__cta-download-section .page-login__cta-buttons {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-login__download-image {
    width: 680px; /* Specific width as per requirement */
    height: 400px; /* Specific height as per requirement */
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid #F4D34D; /* Gold border */
    display: block; /* Ensure it takes its own line for margin auto */
    margin: 0 auto;
}

.page-login__app-info {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__why-choose-us {
    padding: 60px 0;
    background-color: #B71C1C;
}

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

.page-login__why-choose-us .page-login__feature-item {
    background-color: #D32F2F; /* Custom Card BG color */
    border: 1px solid #F2B544; /* Custom Border color */
}

.page-login__responsible-gaming {
    padding: 60px 0;
    background-color: #7A0E0E;
}

.page-login__responsible-gaming-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-login__responsible-gaming-list .page-login__list-item {
    background-color: #D32F2F; /* Custom Card BG color */
    border: 1px solid #F2B544; /* Custom Border color */
}

.page-login__info-card-section {
    padding: 60px 0;
    background-color: #B71C1C; /* Custom Background color */
}

.page-login__info-card {
    background-color: #D32F2F; /* Custom Card BG color */
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid #F2B544; /* Custom Border color */
}

.page-login__info-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: #F4D34D; /* Gold for titles */
    margin-bottom: 20px;
}

.page-login__info-card-text {
    font-size: 1.1rem;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-login__container {
        padding: 0 15px !important; /* Adjust padding for mobile */
    }

    /* 1. 顶区标题 + 双 CTA */
    .page-login__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }

    .page-login__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important; /* Adjust H1 size for mobile */
        margin-bottom: 15px !important;
    }

    .page-login__subtitle {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }

    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 4. 按钮与按钮容器 */
    .page-login__btn,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit,
    .page-login__btn-gold,
    .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 !important;
        padding-right: 15px !important;
    }

    /* 2. 单栏长文容器 */
    .page-login__section-title {
        font-size: 2rem !important;
        margin-bottom: 30px !important;
    }

    .page-login__section-description {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
    }

    .page-login__login-card {
        padding: 30px 20px !important;
    }

    .page-login__form-options {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__features-list {
        grid-template-columns: 1fr !important; /* Single column layout for grids */
        gap: 20px !important;
    }
}