/* style/login.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --login-btn-color: #C30808;
    --register-btn-color: #C30808;
    --login-register-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-dark: #017439;
    --border-light: #e0e0e0;
}

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--bg-white); /* Default background */
}

/* Ensure body padding-top is handled by shared.css */
.page-login__hero-section {
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

.page-login__hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.page-login__hero-content {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--login-register-font-color); /* Custom color for title */
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-login__login-form-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin-top: 30px;
}

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

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

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

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

.page-login__form-input::placeholder {
    color: #888;
}

.page-login__btn-login {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--login-btn-color); /* Custom color for login button */
    color: var(--login-register-font-color); /* Custom font color */
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    box-sizing: border-box;
}

.page-login__btn-login:hover {
    background-color: #a40707; /* Darken red */
}

.page-login__form-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.95em;
}

.page-login__forgot-password,
.page-login__link-register {
    color: var(--login-register-font-color); /* Custom font color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__link-register:hover {
    color: var(--secondary-color);
}

.page-login__no-account {
    color: var(--text-light);
}

.page-login__hero-image-wrapper {
    flex: 1;
    text-align: right;
}

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

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

.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-dark);
}

/* Dark sections for contrast */
.page-login__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-login__dark-section .page-login__section-title {
    color: var(--login-register-font-color); /* Custom font color for titles in dark sections */
}

.page-login__dark-section .page-login__section-description {
    color: var(--text-light);
}

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

.page-login__benefit-item,
.page-login__security-item,
.page-login__troubleshoot-item,
.page-login__gameshow-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

.page-login__dark-section .page-login__benefit-item,
.page-login__dark-section .page-login__gameshow-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.page-login__dark-section .page-login__benefit-item .page-login__benefit-title,
.page-login__dark-section .page-login__gameshow-item .page-login__gameshow-title {
    color: var(--login-register-font-color); /* Custom font color for titles in dark section cards */
}

.page-login__benefit-item:hover,
.page-login__security-item:hover,
.page-login__gameshow-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-icon,
.page-login__security-icon,
.page-login__gameshow-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title,
.page-login__security-title,
.page-login__troubleshoot-title,
.page-login__gameshow-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-login__dark-section .page-login__benefit-title,
.page-login__dark-section .page-login__gameshow-title {
    color: var(--login-register-font-color);
}

.page-login__benefit-text,
.page-login__security-text,
.page-login__troubleshoot-text,
.page-login__gameshow-text {
    font-size: 1em;
    color: var(--text-dark);
}

.page-login__dark-section .page-login__benefit-text,
.page-login__dark-section .page-login__gameshow-text {
    color: var(--text-light);
}

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

.page-login__step-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    flex: 1 1 calc(25% - 30px);
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    position: relative;
    padding-top: 60px;
}

.page-login__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--login-btn-color); /* Custom red for step numbers */
    color: var(--login-register-font-color); /* Custom yellow for step number font */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-login__step-text {
    font-size: 1em;
    color: var(--text-light);
}

.page-login__cta-register-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

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

.page-login__cta-register-section .page-login__section-title {
    color: var(--login-register-font-color);
}

.page-login__cta-register-section .page-login__section-description {
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-login__btn-register {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--register-btn-color); /* Custom color for register button */
    color: var(--login-register-font-color); /* Custom font color */
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-register:hover {
    background-color: #a40707; /* Darken red */
}

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #f0f0f0;
}

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0 !important; /* Ensure this is set for JS to work */
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px;
}

.page-login__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-login__contact-cta-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-login__btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 30px;
    border: 2px solid var(--primary-color);
    box-sizing: border-box;
}

.page-login__btn-contact:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}