/* style/login.css */

/* Custom colors from requirements */
:root {
    --page-login-bg: #140C0C;
    --page-login-card-bg: #2A1212;
    --page-login-text-main: #FFF1E8;
    --page-login-border: #6A1E1E;
    --page-login-gold: #F3C54D;
    --page-login-deep-red: #7E0D0D;
    --page-login-btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --page-login-primary-color: #C61F1F; /* Main brand color */
    --page-login-secondary-color: #E53030; /* Auxiliary brand color */
}

.page-login {
    background-color: var(--page-login-bg);
    color: var(--page-login-text-main); /* Ensure contrast with dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    overflow: hidden; /* Prevent content overflow */
    box-sizing: border-box;
}

.page-login__container {
    max-width: 1200px;
    width: 100%; /* Ensure it takes full width up to max-width */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

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

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Matches container max-width */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-login__hero-content {
    background: var(--page-login-card-bg); /* Dark background */
    color: var(--page-login-text-main); /* Light text */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 500px; /* Constrain form width */
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: clamp(24px, 4vw, 48px); /* Responsive H1, no fixed large size */
    color: var(--page-login-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--page-login-text-main);
}

.page-login__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.page-login__form-group {
    text-align: left;
}

.page-login__form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--page-login-text-main);
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--page-login-border);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent for dark theme */
    color: var(--page-login-text-main);
    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;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 14px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    white-space: normal; /* For button text wrapping */
    word-wrap: break-word; /* For button text wrapping */
}

.page-login__btn-primary {
    background: var(--page-login-btn-gradient); /* Gold gradient */
    color: #ffffff; /* White text for contrast */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-login__btn-secondary {
    background-color: transparent;
    border: 2px solid var(--page-login-gold);
    color: var(--page-login-gold);
}

.page-login__btn-secondary:hover {
    background-color: rgba(243, 197, 77, 0.1);
    transform: translateY(-2px);
}

.page-login__form-links {
    margin-top: 15px;
}

.page-login__forgot-password {
    color: var(--page-login-gold);
    text-decoration: none;
    font-size: 0.95em;
}

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

/* Features Section */
.page-login__features-section {
    background-color: var(--page-login-deep-red); /* Darker red background */
    padding: 80px 20px;
    text-align: center;
    color: var(--page-login-text-main);
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: clamp(22px, 3.5vw, 38px);
    color: var(--page-login-gold);
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

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

.page-login__feature-card {
    background-color: var(--page-login-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-login-text-main); /* Light text */
    text-align: left;
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
}

.page-login__feature-icon {
    width: 100%;
    max-width: 150px; /* Constrain icon size */
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 8px;
    display: block; /* Ensure it respects max-width */
}

.page-login__card-title {
    font-size: 1.5em;
    color: var(--page-login-gold);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.page-login__card-description {
    font-size: 1em;
    color: var(--page-login-text-main);
    flex-grow: 1;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}