/* ═══════════════════════════════════════════════════════════════
   BUTLER POS — MINIMALIST FIGMA / CANVA STYLE LOGIN
   Single Viewport (No Scroll on Desktop), Responsive, No Emojis, No Clutter
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800;900&family=Syne:wght@700;800&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-logo: 'Syne', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Oceanic Palette */
    --color-primary: #0284C7;
    --color-primary-hover: #0369A1;
    --color-navy-deep: #07223D;
    --color-navy-mid: #0B3056;
    --color-navy-light: #134B7D;
    --color-sky-tint: #E0F2FE;

    /* Neutrals */
    --color-canvas: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-border: #E2E8F0;
    --color-border-subtle: #F1F5F9;

    --color-text-title: #0F172A;
    --color-text-body: #334155;
    --color-text-muted: #64748B;
    --color-text-faint: #94A3B8;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
}

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.login-page-body {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-body);
    background-color: var(--color-canvas);
    -webkit-font-smoothing: antialiased;
}

/* Master Container: Fixed 100vh on Desktop, Never Scrollable */
.login-viewport {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   LEFT PANEL — FIGMA / CANVA EDITORIAL ART SHOWCASE
   ═══════════════════════════════════════════════════════════ */
.login-showcase {
    background: linear-gradient(150deg, #07223D 0%, #0B3056 55%, #0B4073 100%);
    color: #FFFFFF;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Soft ambient lighting in background */
.login-showcase::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.login-showcase::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.22) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

/* Brand Header */
.showcase-brand-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #FFFFFF;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.brand-title {
    font-family: var(--font-logo);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.brand-tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #93C5FD;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
}

.card-mobile-brand {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.card-mobile-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: #0284C7;
    border: none;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}
.card-mobile-brand .brand-title {
    color: #0F172A;
}
@media (max-width: 768px) {
    .card-mobile-brand {
        display: flex;
    }
}

/* Center Art & Typography Block */
.showcase-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto 0;
}

.showcase-headline {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-bottom: 0.45rem;
    max-width: 480px;
}

.showcase-headline .text-highlight {
    color: #38BDF8;
}

.showcase-subtext {
    font-size: 0.92rem;
    color: #94A3B8;
    line-height: 1.45;
    max-width: 420px;
    margin-bottom: 1.25rem;
}

/* Vector Art Container */
.showcase-art-frame {
    width: 100%;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-vector-art {
    width: 100%;
    max-height: 290px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

.showcase-vector-art:hover {
    transform: scale(1.02);
}

/* Showcase Footer Bar */
.showcase-footer-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #94A3B8;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT PANEL — MINIMALIST, HIGH-CONVERSION LOGIN
   ═══════════════════════════════════════════════════════════ */
.login-portal {
    background-color: var(--color-canvas);
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 3rem;
    overflow-y: auto; /* Fallback for very small laptop heights */
}

/* Top Navigation Link */
.portal-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-back:hover {
    color: var(--color-primary);
}

.link-help {
    font-size: 0.82rem;
    color: var(--color-text-faint);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-help:hover {
    color: var(--color-primary);
}

/* Card Container */
.portal-card-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0;
}

.login-clean-card {
    width: 100%;
    max-width: 410px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

/* Card Header */
.card-intro {
    margin-bottom: 1.25rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-text-title);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* Role Switcher Pills (Clean text only, NO emojis) */
.role-pills-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #F1F5F9;
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.role-pill-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.45rem 0.35rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.role-pill-btn:hover {
    color: var(--color-text-title);
}

.role-pill-btn.active {
    background: #FFFFFF;
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

/* Form Styles */
.form-field {
    margin-bottom: 1rem;
}

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

.field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-title);
}

.field-forgot-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
}

.field-forgot-link:hover {
    text-decoration: underline;
}

.field-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 13px;
    color: var(--color-text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.field-input {
    width: 100%;
    padding: 0.72rem 0.9rem 0.72rem 2.65rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-title);
    background: #FFFFFF;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.2s ease;
}

.field-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.field-input::placeholder {
    color: var(--color-text-faint);
    font-weight: 400;
}

.field-pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--color-text-faint);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.field-pw-toggle:hover {
    color: var(--color-text-title);
}

/* Remember Checkbox */
.remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

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

/* Submit Action Button */
.btn-login-action {
    width: 100%;
    padding: 0.82rem;
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-login-action:hover:not(:disabled) {
    background: var(--color-primary-hover);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.38);
    transform: translateY(-1px);
}

.btn-login-action:active:not(:disabled) {
    transform: scale(0.99);
}

.btn-login-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer Link */
.card-bottom-link {
    text-align: center;
    margin-top: 1.15rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.card-bottom-link a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.card-bottom-link a:hover {
    text-decoration: underline;
}

/* Bottom Copyright Bar */
.portal-footer-bar {
    text-align: center;
    font-size: 0.76rem;
    color: var(--color-text-faint);
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    background: #0F172A;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.86rem;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    pointer-events: auto;
    max-width: 380px;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-error {
    background: #1E1014;
    border-color: #EF4444;
    color: #FCA5A5;
}

.toast-success {
    background: #0D1F18;
    border-color: #10B981;
    color: #A7F3D0;
}

.toast-warning {
    background: #20170A;
    border-color: #F59E0B;
    color: #FDE68A;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (Mobile & Tablet)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .login-viewport {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .login-showcase {
        height: auto;
        max-height: none;
        padding: 2.5rem 1.5rem;
    }

    .showcase-vector-art {
        max-height: 220px;
    }

    .login-portal {
        height: auto;
        max-height: none;
        padding: 2.5rem 1.5rem;
    }

    .login-clean-card {
        padding: 1.75rem 1.25rem;
        box-shadow: none;
        border: none;
        background: transparent;
    }
}

@media (max-width: 768px) {
    .login-viewport {
        display: flex;
        flex-direction: column;
    }
    .login-portal {
        order: 1;
        padding: 2rem 1.25rem;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    .portal-header-bar {
        width: 100%;
        max-width: 420px;
        margin-bottom: 1.5rem;
    }
    .portal-card-wrap {
        width: 100%;
        max-width: 420px;
    }
    .login-clean-card {
        width: 100%;
        max-width: 420px;
    }
    .login-showcase {
        order: 2;
        padding: 1.75rem 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .showcase-vector-art {
        display: none;
    }
}
