/* Luna Cafe — Staff Portal login (split-screen) */

:root {
    --luna-navy: #0A161E;
    --luna-navy-hover: #152535;
    --luna-bg: #F5F7FA;
    --luna-blue-soft: #EDF2FF;
    --luna-gold: #F4D03F;
    --luna-gold-link: #B8860B;
    --luna-text: #0F172A;
    --luna-text-muted: #64748B;
    --luna-border: #E2E8F0;
    --luna-input-bg: #FAFBFC;
    --luna-radius: 12px;
    --luna-transition: 0.2s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body.luna-login-page {
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
    background: #fff;
    color: var(--luna-text);
    overflow-x: hidden;
}

.luna-login-shell {
    display: flex;
    min-height: 100vh;
}

/* —— Left hero panel —— */
.luna-login-hero {
    flex: 1.35;
    position: relative;
    min-height: 100vh;
    background-color: #1a3a3a;
    background-image: url('../images/login-hero.png');
    background-position: left center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px 56px;
    overflow: hidden;
}

.luna-login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 22, 30, 0.08) 0%,
        rgba(10, 22, 30, 0.15) 40%,
        rgba(10, 22, 30, 0.55) 100%
    );
    pointer-events: none;
}

.luna-status-badge {
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--luna-text);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.luna-status-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--luna-gold);
    box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.35);
}

.luna-hero-brand {
    position: relative;
    z-index: 2;
    max-width: 420px;
}

.luna-hero-brand h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.luna-hero-brand .portal-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
}

.luna-hero-brand p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 360px;
}

/* —— Right form panel —— */
.luna-login-panel {
    flex: 1;
    min-width: 0;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px clamp(32px, 5vw, 72px);
    background: #fff;
    position: relative;
}

.luna-login-watermark {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    opacity: 0.06;
    pointer-events: none;
    object-fit: contain;
}

.luna-login-panel-inner {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.luna-login-panel h2 {
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--luna-navy);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.luna-login-subtitle {
    font-size: 0.92rem;
    color: var(--luna-text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.luna-field {
    margin-bottom: 22px;
}

.luna-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--luna-text);
    margin-bottom: 8px;
}

.luna-field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.luna-field-label-row label {
    margin-bottom: 0;
}

.luna-field-label-row a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--luna-gold-link);
    text-decoration: none;
}

.luna-field-label-row a:hover {
    text-decoration: underline;
}

.luna-input-wrap {
    position: relative;
}

.luna-input-wrap > i.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.luna-input-wrap > .toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 0.95rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.luna-input-wrap > .toggle-pw:hover {
    color: var(--luna-navy);
}

.luna-input-wrap select,
.luna-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--luna-border);
    border-radius: var(--luna-radius);
    background: var(--luna-input-bg);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--luna-text);
    transition: border-color var(--luna-transition), box-shadow var(--luna-transition);
    appearance: none;
    -webkit-appearance: none;
}

.luna-input-wrap.has-leading-icon select,
.luna-input-wrap.has-leading-icon input {
    padding-left: 44px;
}

.luna-input-wrap.has-trailing-icon input {
    padding-right: 44px;
}

.luna-input-wrap select {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.luna-input-wrap select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.luna-input-wrap input::placeholder {
    color: #94A3B8;
}

.luna-input-wrap select:focus,
.luna-input-wrap input:focus {
    outline: none;
    border-color: var(--luna-navy);
    box-shadow: 0 0 0 3px rgba(10, 22, 30, 0.08);
    background: #fff;
}

.luna-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    color: var(--luna-text-muted);
    cursor: pointer;
    user-select: none;
}

.luna-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--luna-navy);
    cursor: pointer;
}

.luna-submit-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--luna-radius);
    background: var(--luna-navy);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(10, 22, 30, 0.22);
    transition: background var(--luna-transition), transform var(--luna-transition), box-shadow var(--luna-transition);
}

.luna-submit-btn:hover {
    background: var(--luna-navy-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(10, 22, 30, 0.28);
}

.luna-submit-btn:active {
    transform: translateY(0);
}

.luna-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    padding: 12px 14px;
    border-radius: var(--luna-radius);
    font-size: 0.88rem;
    margin-bottom: 22px;
    line-height: 1.45;
}

.luna-login-footer-links {
    margin-top: auto;
    padding-top: 48px;
    display: flex;
    justify-content: center;
    gap: 28px;
    border-top: 1px solid var(--luna-border);
    margin-top: 48px;
    padding-top: 24px;
}

.luna-login-footer-links a {
    font-size: 0.82rem;
    color: var(--luna-text-muted);
    text-decoration: none;
}

.luna-login-footer-links a:hover {
    color: var(--luna-navy);
}

/* —— Responsive —— */
@media (max-width: 960px) {
    .luna-login-shell {
        flex-direction: column;
    }

    .luna-login-hero {
        flex: none;
        min-height: 280px;
        padding: 32px 28px;
    }

    .luna-status-badge {
        top: 20px;
        right: 20px;
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .luna-hero-brand h1 {
        font-size: 2rem;
    }

    .luna-hero-brand p {
        display: none;
    }

    .luna-login-panel {
        max-width: none;
        flex: 1;
        padding: 36px 28px 32px;
    }

    .luna-login-watermark {
        width: 160px;
        height: 160px;
        right: -20px;
        bottom: -20px;
    }
}

@media (max-width: 480px) {
    .luna-login-hero {
        min-height: 220px;
        padding: 24px 20px;
    }

    .luna-login-panel {
        padding: 28px 20px 24px;
    }

    .luna-login-footer-links {
        gap: 16px;
        flex-wrap: wrap;
    }
}
