/* style/login.css */

/* Variables and Base Styles for .page-login scope */
.page-login {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    --bg-light: #f9f9f9; /* Slightly off-white for subtle section differentiation */
    --bg-white: #ffffff;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 18px rgba(0, 0, 0, 0.15);

    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--bg-white) 100%); /* Blend primary color with white */
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-login__hero-image {
    width: 100%;
    margin-top: 30px;
    order: 2; /* Place image below content on desktop initially */
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    order: 1; /* Place content above image on desktop initially */
    color: var(--text-light); /* Light text on primary color background */
}

.page-login__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-light);
}

.page-login__intro-text {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--login-button-color); /* Specific color for login button */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__cta-button:hover {
    background: #e06c00; /* Darken #EA7C07 */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-login__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-login__section-title {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-login__section-title--light {
    color: var(--text-light);
}

/* Form Section */
.page-login__form-section {
    background: var(--bg-white);
    padding: 60px 0;
}

.page-login__form-description {
    text-align: center;
    font-size: 1.05em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-login__login-form {
    max-width: 450px;
    margin: 0 auto;
    padding: 35px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
    outline: none;
}

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-login__btn-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--login-button-color);
    color: var(--text-light);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.page-login__btn-submit:hover {
    background: #e06c00; /* Darken #EA7C07 */
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.page-login__link-forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__link-forgot-password:hover {
    color: #1e87b6; /* Darken #26A9E0 */
    text-decoration: underline;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: var(--text-dark);
}

.page-login__link-register {
    color: var(--login-button-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__link-register:hover {
    color: #e06c00; /* Darken #EA7C07 */
    text-decoration: underline;
}

/* Why Choose Section */
.page-login__why-choose-section {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--text-light);
}

.page-login__why-choose-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

.page-login__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-login__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-login__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-login__feature-item p {
    font-size: 0.95em;
    color: var(--text-light);
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-login__feature-item p a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-login__feature-item p a:hover {
    color: #f0f0f0; /* Lighten #FFFFFF */
}

/* Security Section */
.page-login__security-section {
    background: #000000; /* Use black as per custom color definition */
    padding: 80px 0;
    color: var(--text-light);
}

.page-login__security-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-login__security-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
}

.page-login__security-item-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-login__security-item p {
    font-size: 0.95em;
    color: var(--text-light);
    flex-grow: 1;
}

.page-login__responsible-gaming-text {
    text-align: center;
    font-size: 1.05em;
    margin-top: 40px;
    color: var(--text-light);
}

.page-login__link-responsible-gaming {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__link-responsible-gaming:hover {
    color: #f0f0f0; /* Lighten #FFFFFF */
}

/* FAQ Section */
.page-login__faq-section {
    background: var(--bg-light);
    padding: 60px 0;
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}