/* style/login.css */

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

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

.page-login__container--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-login__container--flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.page-login__section-title {
    font-size: 3em;
    color: #DAA520; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-title--light {
    color: #ffffff; /* White for titles on dark sections */
}

.page-login__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.8);
}

.page-login__section-intro--light {
    color: rgba(255, 255, 255, 0.8);
}

.page-login__section-outro--light {
    color: rgba(255, 255, 255, 0.8);
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-login__btn-primary {
    background-color: #DAA520; /* Gold primary button */
    color: #ffffff;
    border: 2px solid #DAA520;
}

.page-login__btn-primary:hover {
    background-color: #c08b1a; /* Darker gold on hover */
    border-color: #c08b1a;
}

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

.page-login__btn-secondary:hover {
    background-color: #DAA520;
    color: #2F4F4F; /* Dark green text on gold hover */
}

/* 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); /* Account for fixed header */
    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.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-login__hero-title {
    font-size: 4.5em;
    color: #DAA520;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

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

/* Login Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: #2F4F4F; /* Dark green background for form section */
    color: #ffffff;
}

.page-login__login-form {
    max-width: 500px;
    margin: 40px auto 0;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #DAA520; /* Gold labels */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-login__form-submit {
    flex-grow: 1;
    max-width: 200px; /* Limit button width */
}

.page-login__forgot-password {
    color: #DAA520;
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__register-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
}

.page-login__register-link {
    color: #DAA520;
    text-decoration: none;
    font-weight: bold;
}

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

/* Why Choose Section */
.page-login__why-choose-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
}

.page-login__container--grid {
    grid-template-columns: 1fr;
}

.page-login__text-content {
    color: #ffffff;
}

.page-login__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for feature cards */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__feature-title {
    color: #DAA520;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-login__feature-description {
    color: rgba(255, 255, 255, 0.7);
}

.page-login__image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #2F4F4F; /* Dark green background */
    color: #ffffff;
    text-align: center;
}

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

.page-login__card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

.page-login__card--transparent {
    background-color: rgba(255, 255, 255, 0.05); /* More transparent for dark section */
}

.page-login__card-title {
    color: #DAA520;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.page-login__card-description {
    color: rgba(255, 255, 255, 0.7);
}

/* Game World Section */
.page-login__game-world-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
}

.page-login__game-categories {
    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.08);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-login__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-login__game-card .page-login__card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    flex-grow: 1; /* Allow title to grow */
}

.page-login__game-card .page-login__card-title a {
    color: #DAA520;
    text-decoration: none;
}

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

.page-login__game-card .page-login__card-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 80px 0;
    background-color: #DAA520; /* Gold background for promotions */
    color: #2F4F4F; /* Dark green text on gold */
}

.page-login__promotions-section .page-login__section-title {
    color: #2F4F4F; /* Dark green title on gold */
}

.page-login__promotions-section .page-login__section-intro {
    color: rgba(47, 79, 79, 0.9); /* Dark green intro text */
}

.page-login__promotions-section .page-login__section-outro {
    color: rgba(47, 79, 79, 0.9);
}

.page-login__promotions-section .page-login__btn-primary {
    background-color: #2F4F4F; /* Dark green button */
    border-color: #2F4F4F;
    color: #ffffff;
}