/* General Styling */
.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #FFF6D6); /* Default text color from palette */
    background-color: var(--bg-color, #0A0A0A); /* Default background from palette */
    line-height: 1.6;
}

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

.page-login__section-title {
    font-size: clamp(28px, 4vw, 42px); /* H1 font size rule applied for general section titles */
    font-weight: 700;
    color: var(--text-main, #FFF6D6);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-login__section-description {
    font-size: 18px;
    color: rgba(255, 246, 214, 0.8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For responsive button */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A; /* Dark text on bright button for contrast */
    border: none;
}

.page-login__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background: #111111; /* Card BG */
    color: var(--main-color, #F2C14E);
    border: 2px solid var(--border-color, #3A2A12);
}

.page-login__btn-secondary:hover {
    background: var(--main-color, #F2C14E);
    color: #0A0A0A;
    border-color: var(--main-color, #F2C14E);
    transform: translateY(-2px);
}

.page-login__btn-submit {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    border: none;
    width: 100%;
}

.page-login__btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Image base styles */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
    background-color: var(--bg-color, #0A0A0A);
    min-height: 700px;
    justify-content: center;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    width: 100%;
    height: 100%; /* Take full height of wrapper if available */
    object-fit: cover; /* Cover the area, will be changed to contain on mobile */
    min-height: 200px; /* Minimum size */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 0 15px 60px; /* Added bottom padding */
}

.page-login__main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: var(--text-main, #FFF6D6);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Login Form */
.page-login__login-form-container {
    background: var(--card-bg, #111111);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 40px auto 0;
    border: 1px solid var(--border-color, #3A2A12);
}

.page-login__form-title {
    font-size: 28px;
    color: var(--text-main, #FFF6D6);
    text-align: center;
    margin-bottom: 30px;
}

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

.page-login__form-label {
    display: block;
    font-size: 16px;
    color: rgba(255, 246, 214, 0.7);
    margin-bottom: 8px;
    text-align: left;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main, #FFF6D6);
    font-size: 16px;
    box-sizing: border-box;
}

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

.page-login__form-input:focus {
    border-color: var(--glow-color, #FFD36B);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.3);
}

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

.page-login__remember-me {
    color: rgba(255, 246, 214, 0.7);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.page-login__checkbox {
    margin-right: 8px;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color, #3A2A12);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: pointer;
}

.page-login__checkbox:checked {
    background-color: var(--main-color, #F2C14E);
    border-color: var(--main-color, #F2C14E);
}

.page-login__checkbox:checked::before {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0A0A0A;
    font-size: 14px;
    line-height: 1;
}


.page-login__forgot-password {
    color: var(--main-color, #F2C14E);
    text-decoration: none;
}

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

.page-login__register-text {
    color: rgba(255, 246, 214, 0.7);
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
}

.page-login__register-link {
    color: var(--glow-color, #FFD36B);
    text-decoration: none;
    font-weight: 600;
}

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

/* About Section (Dark Background) */
.page-login__about-section {
    padding: 80px 0;
    background-color: var(--card-bg, #111111); /* Using card bg for this section */
    color: var(--text-main, #FFF6D6);
    border-top: 1px solid var(--border-color, #3A2A12);
}