/* ==========================================================================
   SMACSS & BEM ARCHITECTURE FOR LOGIN PAGE
   ========================================================================== */

/* --- BASE --- */
:root {
    --login-clr-bg-dark: #000000;
    --login-clr-bg-card: #222222;
    --login-clr-bg-light: #e5e7eb;
    /* Adjust to match design grey */
    --login-clr-bg-features: #f3f4f6;
    --login-clr-accent: #FF4800;
    --login-clr-accent-blue: #007BFF;
    --login-clr-text-main: #111111;
    --login-clr-text-light: #ffffff;
    --login-clr-text-muted: #9CA3AF;
    --login-clr-text-muted-dark: #4B5563;
}

body.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Rethink Sans', sans-serif;
    background-color: var(--clr-primary-dark);
    color: var(--login-clr-text-main);
    /* Hide overflow x */
    overflow-x: hidden;
}

/* Hide header/footer if they were included, but we are a standalone page */

/* --- MODULES (BEM) --- */

/* 1. Login Hero (Top Section) */
.login-hero {
    background-color: var(--login-clr-bg-dark);
    color: var(--login-clr-text-light);
    padding: 10rem 0rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.login-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .login-hero__inner {
        grid-template-columns: 1.6fr 1fr;
        gap: 5rem;
    }
}


.login-hero__subtitle {
    font-size: 0.9rem;
    color: var(--login-clr-text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}

.login-hero__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--login-clr-accent);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.login-hero__desc {
    font-size: 0.9rem;
    color: var(--login-clr-text-muted);
    line-height: 1.6;
}

/* 2. Login Card */
.login-card {
    background-color: var(--login-clr-bg-card);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .login-card {
        padding: 3rem;
    }
}

.login-card__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--login-clr-text-muted);
    margin-bottom: 0.5rem;
}

.login-card__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--login-clr-text-light);
}

.login-form__group {
    margin-bottom: 1.5rem;
}

.login-form__label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--login-clr-text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.login-form__label span {
    color: var(--login-clr-accent);
}

.login-form__input {
    width: 100%;
    background-color: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--login-clr-text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form__input:focus {
    outline: none;
    border-color: var(--login-clr-accent);
}

.login-form__input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.login-form__input:focus::placeholder {
    color: transparent;
}

.login-form__input:not(:placeholder-shown):invalid {
    border-color: #ff3b3b;
    color: #ff3b3b;
}

.login-form__btn {
    background-color: var(--login-clr-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.login-form__btn:hover {
    background-color: #e54100;
}

/* 3. Info Section (Bottom Section) */
.login-info {
    background-color: #E6E7E9;
    /* Specific grey from design */
    padding: 5rem 0;
    position: relative;
}

.login-info__header {
    text-align: center;
    margin-bottom: 3rem;
}

.login-info__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--login-clr-text-muted-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.login-info__title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--login-clr-text-main);
}

/* 4. Features Grid */
.login-features {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
}

.login-features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .login-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .login-features__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

.login-feature__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--login-clr-text-main);
}

.login-feature__desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--login-clr-text-muted-dark);
    margin: 0;
}

/* 5. Footer Text */
.login-footer-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.login-footer-text__highlight {
    color: var(--login-clr-accent);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.login-footer-text__p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--login-clr-text-main);
    margin-bottom: 1rem;
}

.login-footer-text__p:last-child {
    margin-bottom: 0;
    margin-top: 2rem;
    color: var(--login-clr-text-muted-dark);
    font-style: italic;
}

/* 6. Mobile Sticky Button */
.mobile-sticky-btn-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--login-clr-bg-card);
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-sticky-btn-wrapper.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.mobile-sticky-btn {
    background-color: var(--login-clr-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .mobile-sticky-btn-wrapper {
        display: block;
    }
    body.login-page {
        padding-bottom: 80px; 
    }
}
