/* style/login.css */

/* Variables from shared.css are assumed */
/* --primary-color: #26A9E0; */
/* --secondary-color: #FFFFFF; */
/* --text-color-dark: #333333; */
/* --text-color-light: #FFFFFF; */
/* --background-color: #FFFFFF; (Assumed light background from shared) */
/* --header-offset: ...; (Assumed from shared) */

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Ensure background is defined */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
    padding-bottom: 80px;
    color: var(--text-color-light, #FFFFFF);
    background-color: var(--primary-color, #26A9E0);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2; /* To make text readable over the image */
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color-light, #FFFFFF);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-light, #FFFFFF);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-login__login-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
    color: var(--text-color-dark, #333333);
    text-align: left;
}

.page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color, #26A9E0);
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: var(--primary-color, #26A9E0);
    outline: none;
}

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

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

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: #555555;
}

.page-login__forgot-password-link {
    color: var(--primary-color, #26A9E0);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #EA7C07; /* Login button color for emphasis */
}

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #EA7C07; /* Specific color for Login button */
    color: var(--text-color-light, #FFFFFF);
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-primary:hover {
    background-color: #d16b06;
    transform: translateY(-2px);
}

.page-login__login-button {
    margin-bottom: 15px;
}

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

.page-login__register-link {
    color: var(--primary-color, #26A9E0);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #EA7C07;
}

/* General Sections */
.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, #26A9E0);
    font-weight: bold;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #555555;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: var(--background-color, #FFFFFF);
    padding: 60px 0;
    color: var(--text-color-dark, #333333);
}

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

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

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: var(--primary-color, #26A9E0);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__benefit-text {
    font-size: 1em;
    color: #666666;
}

.page-login__image-full-width {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-login__games-section {
    background-color: var(--primary-color, #26A9E0);
    padding: 60px 0;
    color: var(--text-color-light, #FFFFFF);
}

.page-login__games-section .page-login__section-title,
.page-login__games-section .page-login__section-description {
    color: var(--text-color-light, #FFFFFF);
}

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

.page-login__game-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-color-dark, #333333);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-login__game-title {
    font-size: 1.4em;
    color: var(--primary-color, #26A9E0);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__game-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    min-height: 100px; /* Ensure consistent card height */
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color, #FFFFFF);
    color: var(--primary-color, #26A9E0);
    border: 2px solid var(--primary-color, #26A9E0);
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.page-login__btn-secondary:hover {
    background-color: var(--primary-color, #26A9E0);
    color: var(--text-color-light, #FFFFFF);
    transform: translateY(-2px);
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
    background-color: var(--background-color, #FFFFFF);
    padding: 60px 0;
    color: var(--text-color-dark, #333333);
}

.page-login__troubleshoot-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-login__troubleshoot-text {
    flex: 2;
}

.page-login__troubleshoot-item {
    margin-bottom: 30px;
}

.page-login__troubleshoot-subtitle {
    font-size: 1.6em;
    color: var(--primary-color, #26A9E0);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__troubleshoot-paragraph {
    margin-bottom: 10px;
    color: #555555;
}

.page-login__troubleshoot-list {
    margin-left: 25px;
    list-style-type: decimal;
    color: #555555;
}

.page-login__troubleshoot-list li {
    margin-bottom: 8px;
}

.page-login__troubleshoot-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__troubleshoot-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #f9f9f9; /* Slightly different background for visual separation */
    padding: 60px 0;
    color: var(--text-color-dark, #333333);
}

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

.page-login__faq-item {
    background-color: var(--secondary-color, #FFFFFF);
    border: 1px solid #e0e0e0;
    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: var(--secondary-color, #FFFFFF);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    font-size: 1.2em;
    color: var(--primary-color, #26A9E0);
    margin: 0;
    font-weight: bold;
}

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

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an X or minus */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Register CTA Section */
.page-login__register-cta-section {
    background-color: var(--primary-color, #26A9E0);
    padding: 80px 0;
    color: var(--text-color-light, #FFFFFF);
    text-align: center;
}

.page-login__register-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-login__register-cta-text {
    flex: 1;
    text-align: left;
}

.page-login__register-cta-text .page-login__section-title,
.page-login__register-cta-text .page-login__section-description {
    color: var(--text-color-light, #FFFFFF);
    text-align: left;
}

.page-login__register-cta-button {
    margin-top: 30px;
    background-color: #EA7C07; /* Consistent login/register button color */
    border: 2px solid #EA7C07;
}

.page-login__register-cta-button:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-login__register-cta-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__register-cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Styles --- */

/* Universal image and container responsiveness */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-login__section,
.page-login__card,
.page-login__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Universal button responsiveness */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}