/* style/login.css */

/* Variables */
:root {
    --primary-color: #017439; /* Main brand color */
    --secondary-color: #C30808; /* Login/Register button color */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-color-light: #ffffff;
    --background-color-dark: #017439; /* Using primary color as dark background for contrast */
    --input-bg: #f5f5f5;
    --input-border: #e0e0e0;
    --link-color: #007bff;
    --font-login-register: #FFFF00; /* Custom font color for login/register */
}

/* Base styles for the page-login scope */
.page-login {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    background: var(--background-color-light); /* Default body background is white */
}

/* Section general styling */
.page-login__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    line-height: 1.2;
}

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

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

/* 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: 10px; /* Small top padding, header offset handled by body */
    background: linear-gradient(135deg, var(--primary-color) 0%, #005f2e 100%); /* Gradient background for hero */
    color: var(--text-color-light);
}

.page-login__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for flex item */
}

.page-login__hero-image {
    width: 100%;
    margin-bottom: 40px;
}

.page-login__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 600px; /* Constrain form width */
}

.page-login__main-title {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-color-light);
    /* clamp for responsive font size */
    font-size: clamp(2.2em, 4vw, 3.2em);
    line-height: 1.2;
}

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-color-light);
}

.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
    color: var(--text-color-dark);
}

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

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

.page-login__input {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    background: var(--input-bg);
    color: var(--text-color-dark);
}

.page-login__input::placeholder {
    color: #888;
}

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

.page-login__btn-submit {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: var(--secondary-color); /* Login button color */
    color: var(--font-login-register); /* Login font color */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-login__btn-submit:hover {
    background: #a80707; /* Darker red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__forgot-password-link:hover {
    color: #004d26;
    text-decoration: underline;
}

.page-login__register-prompt {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.page-login__register-prompt p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--text-color-dark);
}

.page-login__btn-register {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-register:hover {
    background: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Welcome Section */
.page-login__welcome-section {
    padding: 80px 20px;
    background: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-login__game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 60px;
    justify-content: center;
}

.page-login__feature-item {
    flex: 1 1 30%;
    min-width: 300px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 20px;
    background: var(--background-color-dark); /* Dark background */
    color: var(--text-color-light); /* Light text for dark background */
}

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

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

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-icon {
    width: 200px; /* Min size for images */
    height: 150px; /* Aspect ratio */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-login__benefit-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* Security Section */
.page-login__security-section {
    padding: 80px 20px;
    background: var(--background-color-light);
    color: var(--text-color-dark);
}

.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

.page-login__security-image {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-login__security-text {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.page-login__security-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-login__security-subtitle {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-login__security-text ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 30px;
}

.page-login__security-text li {
    margin-bottom: 10px;
}

.page-login__highlight-text {
    color: var(--primary-color);
}

.page-login__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    background: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 20px;
    background: var(--background-color-dark); /* Dark background */
    color: var(--text-color-light); /* Light text for dark background */
}

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

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