/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: calc(80px + var(--header-offset, 120px)); /* Add header offset to top padding */
    text-align: center;
    overflow: hidden; /* For background image */
}

.page-login__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content {
    max-width: 800px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 1;
}

.page-login__main-heading {
    font-size: 3.2em;
    color: #FFFF00; /* Yellow for main heading */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__lead-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-login__intro-text {
    font-size: 1.1em;
    color: #cccccc;
    margin-bottom: 40px;
}

.page-login__form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for card background */
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__card-title {
    font-size: 2em;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-align: center;
}

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

.page-login__label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-login__input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

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

.page-login__input:focus {
    border-color: #FFFF00;
    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;
    accent-color: #017439; /* Custom checkbox color */
}

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

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

.page-login__forgot-password-link:hover {
    color: #ffffff;
}

.page-login__btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login button font color */
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-submit:hover {
    background-color: #a30606;
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #cccccc;
    font-size: 0.95em;
}

.page-login__register-link {
    color: #017439; /* Primary color for register link */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-login__promo-text {
    text-align: center;
    margin-top: 20px;
    color: #FFFF00; /* Yellow for promo text */
    font-size: 0.9em;
}

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #017439; /* Primary color for section titles */
}

.page-login__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555; /* Darker grey for light background sections */
}

/* Why Login Section */
.page-login__why-login-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-login__why-login-section .page-login__section-title {
    color: #017439;
}

.page-login__why-login-section .page-login__section-description {
    color: #555555;
}

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

.page-login__feature-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__feature-icon {
    width: 100%; /* Ensure images are responsive within their containers */
    height: auto;
    max-height: 200px; /* Limit height to prevent overly large images */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-login__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
}

.page-login__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Game Overview Section */
.page-login__game-overview-section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-login__game-overview-section .page-login__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-login__game-overview-section .page-login__section-description {
    color: #cccccc;
}

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

.page-login__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-login__game-title {
    font-size: 1.8em;
    color: #017439; /* Primary color for game titles */
    margin-bottom: 15px;
}

.page-login__game-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 25px;
}