﻿.login-page {
    --lp-orange: #f2a007;
    --lp-orange-dark: #e08e00;
    --lp-navy: #16537e;
    --lp-navy-dark: #123f5f;
    --lp-text-dark: #2b2b2b;
    --lp-text-muted: #6b6b6b;
    --lp-input-bg: #eef4fb;
    --lp-border-radius-card: 12px;
    --lp-border-radius-input: 8px;
    --lp-border-radius-btn: 30px;
    --lp-font: 'Poppins', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-family: var(--lp-font);
    position: relative;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

    .login-page *,
    .login-page *::before,
    .login-page *::after {
        box-sizing: border-box;
    }

/* ---------- FULL-BLEED BACKGROUND ---------- */
.login-page-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #1c1c1c;
}

.login-page-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% 25%;
}


/* ---------- WRAPPER: KEEPS HERO + CARD TOGETHER ---------- */
.login-page-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* instead of center */
    gap: 40px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 50px 80px; /* adjust this value */
}

/* ---------- HERO SECTION (now right side) ---------- */
.login-page-hero {
    flex: 1;
    max-width: 520px;
    /* margin-left: auto;  removed, now space-between handles it */
    padding: 0;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.login-page-hero-eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px 0;
}

.login-page-hero-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.25;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

    .login-page-hero-title strong {
        font-weight: 700;
    }

.login-page-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-page-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.2;
    max-width: 460px;
    margin: 0;
}

.login-page-hero-eyebrow {
    font-size: 18px;
}

.login-page-stat-number {
    color: #ffffff;
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    line-height: 1.1;
}

.login-page-stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-top: 4px;
}

.login-page-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
}

/* ---------- LOGIN CARD (now left side) ---------- */
.login-page-card {
    background: #ffffff;
    width: 583px;
    max-width: 450px;
    padding: clamp(16px, 4vh, 40px) 56px;
    display: flex;
    flex-direction: column;
    border-radius: var(--lp-border-radius-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    align-self: stretch;
    max-height: 700px;
    min-height: 530px;
}

.login-form-header {
    text-align: center;
    margin-bottom: 8px;
}

.login-page-brand {
    margin-bottom: clamp(8px, 2.5vh, 24px);
    flex-shrink: 0;
}

.login-page-logo {
    height: clamp(40px, 15vh, 100px);
    width: auto;
}

.login-page-title {
    font-size: clamp(16px, 2.8vh, 24px);
    font-weight: 500;
    color: var(--lp-text-dark);
    margin: 0 0 clamp(6px, 1.5vh, 16px) 0;
}

.login-page-avatar {
    margin-bottom: clamp(10px, 2.5vh, 20px);
}

    .login-page-avatar img {
        width: clamp(60px, 9vh, 80px);
        height: auto;
    }

.login-page-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.login-page-field {
    margin-bottom: clamp(10px, 2.5vh, 20px);
}

.login-page-label {
    display: block;
    font-size: 15px;
    color: var(--lp-text-dark);
    margin-bottom: clamp(4px, 1vh, 8px);
    font-weight: 400;
}

.login-page-input {
    width: 100%;
    padding: clamp(9px, 2vh, 14px) 16px;
    border: 1px solid #dde6ef;
    border-radius: var(--lp-border-radius-input);
    background: var(--lp-input-bg);
    font-size: 15px;
    color: var(--lp-text-dark);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .login-page-input:focus {
        outline: none;
        border-color: var(--lp-navy);
        box-shadow: 0 0 0 3px rgba(22, 83, 126, 0.12);
    }

.login-page-input--password {
    padding-right: 48px;
}

.login-page-password-wrap {
    position: relative;
}

.login-page-toggle-password {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid #dde6ef;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--lp-text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

    .login-page-toggle-password:hover {
        background: #f4f7fa;
        color: var(--lp-text-dark);
    }

.login-page-eye-icon {
    width: 18px;
    height: 18px;
}

.login-links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px 0 24px;
    width: 100%;
}

.login-page-forgot-password,
.login-page-signup-link {
    font-size: 15px;
    line-height: 1;
    color: var(--lp-orange);
    transition: color .2s ease;
}

.login-page-forgot-password {
    text-decoration: none;
}

    .login-page-forgot-password:hover {
        color: var(--lp-orange-dark);
    }

.login-page-signup-link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .login-page-signup-link:hover {
        color: var(--lp-orange-dark);
    }

.login-page-submit {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: var(--lp-border-radius-btn);
    background: var(--lp-orange);
    color: #ffffff;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(242, 160, 7, 0.35);
    flex-shrink: 0;
}

    .login-page-submit:hover {
        background: var(--lp-orange-dark);
    }

    .login-page-submit:active {
        transform: translateY(1px);
    }

    .login-page-submit:focus-visible {
        outline: 2px solid var(--lp-navy);
        outline-offset: 2px;
    }

    .login-page-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        box-shadow: none;
    }

.login-page-footer {
    margin-top: auto;
    padding-top: clamp(12px, 3vh, 40px);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.login-page-footer-logo-link {
    display: inline-block;
    line-height: 0;
}

    .login-page-footer-logo-link:hover {
        opacity: 0.85;
    }

.login-page-footer-logo {
    height: clamp(20px, 3.5vh, 32px);
    width: auto;
    opacity: 0.9;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .login-page-content {
        padding: 24px;
        gap: 24px;
    }

    .login-page-card {
        width: 460px;
        padding: 36px 40px;
    }
}
/* ===========================
   TABLET (992px and below)
=========================== */
@media (max-width: 992px) {

    .login-page-content {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 24px 60px;
        gap: 28px;
        min-height: 100vh;
    }

    /* Show hero FIRST */
    .login-page-hero {
        order: 1;
        max-width: 700px;
        width: 100%;
        text-align: center;
        padding: 0;
        height: auto;
        padding-bottom: 0;
    }

    .login-page-card {
        order: 2;
        width: 100%;
        max-width: 500px;
        min-height: auto;
        max-height: none;
        padding: 36px 42px;
    }

    .login-page-hero-title {
        font-size: 42px;
        line-height: 1.25;
        margin-bottom: 24px;
    }

    .login-page-hero-stats {
        justify-content: center;
        gap: 30px;
    }

    .login-page-stat-number {
        font-size: 32px;
    }

    .login-page-stat-label {
        font-size: 15px;
    }

    .login-page-stat-divider {
        height: 44px;
    }

    .login-page-bg-image {
        object-position: center;
    }
}


/* ===========================
   LARGE MOBILE
=========================== */
@media (max-width: 768px) {

    .login-page-content {
        padding: 30px 18px 50px;
        gap: 22px;
    }

    .login-page-hero-title {
        font-size: 34px;
        margin-bottom: 20px;
    }

    .login-page-hero-stats {
        gap: 22px;
    }

    .login-page-stat-number {
        font-size: 28px;
    }

    .login-page-stat-label {
        font-size: 14px;
    }

    .login-page-card {
        max-width: 450px;
        padding: 32px 30px;
    }

    .login-page-logo {
        height: 60px;
    }

    .login-page-avatar img {
        width: 72px;
    }

    .login-page-title {
        font-size: 22px;
    }
}


/* ===========================
   MOBILE
=========================== */
@media (max-width: 576px) {

    .login-page-content {
        padding: 24px 16px 40px;
        gap: 20px;
    }

    .login-page-hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 18px;
    }

    .login-page-hero-stats {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 18px;
    }

    .login-page-stat-number {
        font-size: 24px;
    }

    .login-page-stat-label {
        font-size: 13px;
    }

    .login-page-stat-divider {
        height: 34px;
    }

    .login-page-card {
        padding: 28px 22px;
        border-radius: 12px;
    }

    .login-page-logo {
        height: 54px;
    }

    .login-page-avatar img {
        width: 64px;
    }

    .login-page-title {
        font-size: 20px;
    }

    .login-page-field {
        margin-bottom: 16px;
    }

    .login-page-label {
        font-size: 14px;
    }

    .login-page-input {
        padding: 13px 14px;
        font-size: 16px;
    }

    .login-links-container {
        margin-bottom: 22px;
    }

    .login-page-submit {
        padding: 14px;
        font-size: 16px;
    }

    .login-page-footer {
        padding-top: 24px;
    }

    .login-page-footer-logo {
        height: 24px;
    }
}


/* ===========================
   SMALL MOBILE
=========================== */
@media (max-width: 400px) {

    .login-page-content {
        padding: 20px 14px 36px;
    }

    .login-page-hero-title {
        font-size: 24px;
    }

    .login-page-hero-stats {
        flex-direction: column;
        gap: 14px;
    }

    .login-page-stat-divider {
        display: none;
    }

    .login-page-card {
        padding: 24px 18px;
    }

    .login-page-logo {
        height: 48px;
    }

    .login-page-avatar img {
        width: 58px;
    }

    .login-page-title {
        font-size: 18px;
    }
}

.login-page-logo-link {
    display: inline-block;
    cursor: pointer;
}

    .login-page-logo-link:hover {
        opacity: 0.7;
    }



.login-page-field-error {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 4px;
    min-height: 1.1em;
}

.login-page-footer a {
    display: inline-block;
}

.login-page-input.input-error,
.login-page-input--password.input-error {
    border-color: #d32f2f !important;
    outline-color: #d32f2f;
}

/* ---------- HERO SLIDESHOW ---------- */
.login-page-bg-image {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .login-page-bg-image.is-active {
        opacity: 1;
    }

.login-page-hero-slides {
    position: relative;
    width: 100%;
}

.login-page-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

    .login-page-hero-slide.is-active {
        position: relative;
        opacity: 1;
        pointer-events: auto;
    }

/* ---------- ADDED: CAROUSEL NAVIGATION ---------- */
.login-page-hero {
    position: relative; /* ensure absolute positioning works */
}

.login-page-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    z-index: 10;
}

    .login-page-slide-btn:hover {
        background: rgba(255, 255, 255, 0.4);
        color: #fff;
    }

.login-page-slide-btn--prev {
    left: 20px;
}

.login-page-slide-btn--next {
    right: 20px;
}

.login-page-slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.login-page-slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

    .login-page-slide-dot.is-active {
        background: #fff;
        border-color: #fff;
        transform: scale(1.2);
    }

/* ---------- UTILITY ---------- */
.d-none {
    display: none !important;
}