/* style/login.css */

/* --- General Page Styles --- */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark (#1a1a2e), so use light text */
    background-color: #1a1a2e; /* Ensure consistency with shared body background */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Custom font color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__text-content {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: justify;
    color: #f0f0f0;
}

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-login__btn-primary,
.page-login__btn-submit {
    background-color: #C30808; /* Custom login/register button color */
    color: #FFFF00; /* Custom login/register font color */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #017439; /* Use primary color for text */
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* --- Hero Section --- */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-login__hero-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 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-login__hero-title {
    font-size: 3.8em;
    color: #FFFF00; /* Custom font color for titles */
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-login__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-login__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Form Section --- */
.page-login__form-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-login__login-card {
    background-color: #FFFFFF; /* Custom background color for login card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    margin: 0 auto 50px auto;
    color: #333333; /* Dark text for light background */
}

.page-login__card-title {
    font-size: 2em;
    color: #017439; /* Primary color for card title */
    text-align: center;
    margin-bottom: 30px;
}

.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: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #f8f8f8;
}

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

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

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

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

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

.page-login__forgot-password {
    color: #017439; /* Primary color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-login__forgot-password:hover {
    text-decoration: underline;
}

.page-login__btn-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

.page-login__register-link {
    text-align: center;
    margin-top: 25px;
    color: #333333;
}

.page-login__register-link a {
    color: #017439; /* Primary color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link a:hover {
    text-decoration: underline;
}

/* --- Game Section --- */
.page-login__game-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color for dark section */
    color: #ffffff;
}

.page-login__game-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.1); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-login__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-login__game-title {
    font-size: 1.5em;
    color: #FFFF00; /* Custom font color for titles */
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-login__game-title a {
    color: #FFFF00; /* Custom font color for titles */
    text-decoration: none;
}

.page-login__game-title a:hover {
    text-decoration: underline;
}

.page-login__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
}

/* --- Promotion Section --- */
.page-login__promo-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

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

.page-login__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-login__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-login__promo-title {
    font-size: 1.5em;
    color: #FFFF00; /* Custom font color for titles */
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-login__promo-title a {
    color: #FFFF00; /* Custom font color for titles */
    text-decoration: none;
}

.page-login__promo-title a:hover {
    text-decoration: underline;
}

.page-login__promo-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
}

.page-login__cta-section {
    text-align: center;
    margin-top: 50px;
}

/* --- Security Section --- */
.page-login__security-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color for dark section */
    color: #ffffff;
}