:root {
    --color-primary: #0b1b54;
    --color-primary-dark: #061238;
    --color-primary-light: #162d7a;
    --color-secondary: #2563EB;
    --color-secondary-dark: #1d4ed8;
    --color-secondary-light: #3b82f6;
    /* Semantic Colors */
    --color-success: #16A34A;
    --color-success-light: #dcfce7;
    --color-success-border: #86efac;
    --color-danger: #DC2626;
    --color-danger-light: #fef2f2;
    --color-danger-border: #fca5a5;
    --color-warning: #f59e0b;
    --color-warning-light: #fffbeb;
    --color-warning-border: #fde68a;
    --color-info: #0ea5e9;
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-bg: #0b1b54;
    --color-bg-alt: #f1f5f9;
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-text-light: #cbd5e1;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0b1b54 0%, #061238 50%, #0a1929 100%);
    --gradient-button: linear-gradient(135deg, #2563EB 0%, #0b1b54 100%);
    --gradient-button-hover: linear-gradient(135deg, #1d4ed8 0%, #061238 100%);
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.875rem;
    --font-size-3xl: 2.25rem;
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-base: 1rem;
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
    /* Borders & Shadows */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 50%;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 1px 3px rgba(0, 0, 0, 0.06), 0 12px 36px rgba(0, 0, 0, 0.1);
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-panel: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.login-body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}


/* ---------- Authentication Shell ---------- */
.auth-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}


/* ============================================================
   LEFT PANEL
   ============================================================ */
.auth-left {
    position: relative;
    flex: 0 0 50%;
    max-width: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-left-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(11, 27, 84, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Subtle grid pattern */
.auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

/* Decorative glow */
.auth-left::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.auth-left-content {
    position: relative;
    z-index: 2;
    padding: var(--space-4xl);
    max-width: 560px;
    width: 100%;
    color: var(--color-white);
}

/* Brand */
.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-4xl);
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-white);
    backdrop-filter: blur(8px);
}

.brand-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-white);
}

/* Headline */
.auth-headline {
    margin-bottom: var(--space-4xl);
}

.auth-headline h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--space-lg);
    color: var(--color-white);
    letter-spacing: -0.025em;
}

.auth-subtitle {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 460px;
}

/* Feature Highlights */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-4xl);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-base);
}

.feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feature-text strong {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-white);
}

.feature-text span {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.5);
}

/* Abstract Visual — Invoice Cards */
.auth-visual {
    position: relative;
    height: 140px;
    margin-bottom: var(--space-3xl);
}

.visual-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-base) var(--space-lg);
    backdrop-filter: blur(12px);
    width: 260px;
}

.visual-card-1 {
    top: 0;
    left: 0;
    transform: rotate(-2deg);
}

.visual-card-2 {
    top: 30px;
    left: 140px;
    transform: rotate(1deg);
}

.visual-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.visual-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.dot-green {
    background: var(--color-success);
}

.dot-blue {
    background: var(--color-secondary);
}

.visual-label {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.visual-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-md);
}

.visual-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}

.bar-full {
    width: 100%;
}

.bar-long {
    width: 80%;
}

.bar-medium {
    width: 65%;
}

.bar-short {
    width: 40%;
}

.visual-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visual-amount {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-white);
}

.visual-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-paid {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.3);
}

.badge-pending {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Left Footer */
.auth-left-footer {
    margin-top: auto;
}

.auth-left-footer p {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.35);
}


/* ============================================================
   RIGHT PANEL
   ============================================================ */
.auth-right {
    flex: 0 0 50%;
    max-width: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.auth-right-wrapper {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Security Indicator */
.security-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--color-success);
    margin-bottom: var(--space-xl);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-success-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-success-border);
}

.security-indicator i {
    font-size: 0.7rem;
}


/* ---------- Alert Banners ---------- */
.alert-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
    padding: var(--space-base) var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    animation: slideDown var(--transition-slow) ease;
    position: relative;
}

.alert-banner i:first-child {
    margin-top: 2px;
    font-size: var(--font-size-md);
    flex-shrink: 0;
}

.alert-banner span {
    flex: 1;
}

.alert-danger {
    background: var(--color-danger-light);
    border: 1px solid var(--color-danger-border);
    color: var(--color-danger);
}

.alert-warning {
    background: var(--color-warning-light);
    border: 1px solid var(--color-warning-border);
    color: #92400e;
}

.alert-success {
    background: var(--color-success-light);
    border: 1px solid var(--color-success-border);
    color: #166534;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    font-size: var(--font-size-sm);
    padding: 0;
    line-height: 1;
    transition: opacity var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-close:hover {
    opacity: 1;
}


/* ============================================================
   LOGIN CARD
   ============================================================ */
.login-card {
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    padding: var(--space-3xl) var(--space-3xl) var(--space-2xl);
    transition: box-shadow var(--transition-base);
}

.login-card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* Card Header */
.login-card-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.login-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-button);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.logo-icon-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
}

.login-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.login-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}


/* ---------- Form ---------- */
.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Form Field */
.form-field {
    position: relative;
}

.field-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.field-label-icon {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: var(--space-base);
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    pointer-events: none;
    transition: color var(--transition-fast);
    z-index: 2;
}

.field-input {
    width: 100%;
    height: 48px;
    padding: 0 var(--space-3xl) 0 var(--space-3xl);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    color: var(--color-text-primary);
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    outline: none;
    transition: all var(--transition-base);
}

.field-input::placeholder {
    color: var(--color-text-light);
    font-weight: 400;
}

.field-input:hover {
    border-color: var(--color-text-muted);
}

.field-input:focus {
    border-color: var(--color-secondary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-input:focus ~ .input-icon,
.field-input:focus + .input-icon {
    color: var(--color-secondary);
}

/* Input focused — icon color */
.input-wrapper:focus-within .input-icon {
    color: var(--color-secondary);
}

/* Input Status Indicator */
.input-status {
    position: absolute;
    right: var(--space-base);
    display: none;
    align-items: center;
    font-size: var(--font-size-md);
    z-index: 2;
}

/* Validation States */
.form-field.is-valid .field-input {
    border-color: var(--color-success);
    background: var(--color-white);
}

.form-field.is-valid .field-input:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-field.is-valid .input-status {
    display: flex;
    color: var(--color-success);
}

.form-field.is-valid .input-status::before {
    content: '\F26A'; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
}

.form-field.is-invalid .field-input {
    border-color: var(--color-danger);
    background: var(--color-white);
}

.form-field.is-invalid .field-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-field.is-invalid .input-status {
    display: flex;
    color: var(--color-danger);
}

.form-field.is-invalid .input-status::before {
    content: '\F336'; /* bi-exclamation-circle-fill */
    font-family: 'bootstrap-icons';
}

/* Password toggle offset */
.form-field.is-valid #password,
.form-field.is-invalid #password {
    padding-right: 5rem;
}

/* Field Error */
.field-error {
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    margin-top: var(--space-xs);
    padding-left: 2px;
    min-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
    line-height: 1.4;
}

.field-error:empty {
    margin-top: 0;
}

/* Caps Lock Warning */
.caps-warning {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--color-warning);
    margin-top: var(--space-xs);
    padding-left: 2px;
    animation: slideDown var(--transition-base) ease;
}

.caps-warning i {
    font-size: 0.7rem;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: var(--space-base);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--color-text-secondary);
    background: rgba(0, 0, 0, 0.04);
}

/* When status icon is also visible, adjust toggle position */
.form-field.is-valid .password-toggle,
.form-field.is-invalid .password-toggle {
    right: 2.75rem;
}


/* ---------- Form Options Row ---------- */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Custom Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    user-select: none;
    position: relative;
    padding-left: 28px;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--color-text-muted);
}

.checkbox-wrapper input:checked ~ .checkmark {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 5.5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-label {
    font-weight: 400;
}

/* Forgot Link */
.forgot-link {
    font-size: var(--font-size-sm);
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--color-secondary-dark);
    text-decoration: underline;
}


/* ---------- Login Button ---------- */
.btn-login {
    width: 100%;
    height: 48px;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--color-white);
    background: var(--gradient-button);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    margin-top: var(--space-sm);
}

.btn-login:hover:not(:disabled) {
    background: var(--gradient-button-hover);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text,
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

.spinner-circle {
    stroke-dasharray: 42;
    stroke-dashoffset: 32;
}


/* ---------- Last Login Info ---------- */
.last-login-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}


/* ============================================================
   FORGOT PASSWORD CARD
   ============================================================ */
.forgot-card {
    animation: fadeSlideIn var(--transition-panel) ease;
}

.reset-success {
    text-align: center;
    padding: var(--space-xl) 0 var(--space-sm);
    animation: fadeSlideIn var(--transition-slow) ease;
}

.success-icon-wrapper {
    font-size: 2.5rem;
    color: var(--color-success);
    margin-bottom: var(--space-base);
}

.reset-success p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.back-to-login {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.back-to-login a {
    font-size: var(--font-size-sm);
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-fast);
}

.back-to-login a:hover {
    color: var(--color-secondary-dark);
    gap: var(--space-sm);
}


/* ---------- Right Footer ---------- */
.auth-right-footer {
    margin-top: var(--space-2xl);
    text-align: center;
}

.auth-right-footer p {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
}

.auth-right-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-right-footer a:hover {
    color: var(--color-white);
}

.footer-dot {
    margin: 0 var(--space-sm);
    color: rgba(255, 255, 255, 0.4);
}


/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-base) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    font-size: var(--font-size-sm);
    min-width: 300px;
    max-width: 420px;
    animation: toastIn var(--transition-slow) ease;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-success::before {
    background: var(--color-success);
}

.toast-danger::before {
    background: var(--color-danger);
}

.toast-warning::before {
    background: var(--color-warning);
}

.toast-info::before {
    background: var(--color-info);
}

.toast-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-success .toast-icon {
    color: var(--color-success);
}

.toast-danger .toast-icon {
    color: var(--color-danger);
}

.toast-warning .toast-icon {
    color: var(--color-warning);
}

.toast-info .toast-icon {
    color: var(--color-info);
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.toast-message {
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    font-size: var(--font-size-md);
    padding: 0;
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--color-text-primary);
}

.toast.removing {
    animation: toastOut var(--transition-base) ease forwards;
}


/* ============================================================
   ANIMATIONS
   ============================================================ */
@@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

@@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.field-shake {
    animation: fieldShake 0.4s ease;
}


/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet Landscape & Below */
@@media (max-width: 1200px) {
    .auth-left-content {
        padding: var(--space-3xl);
    }

    .auth-headline h1 {
        font-size: var(--font-size-2xl);
    }

    .auth-visual {
        display: none;
    }
}

/* Tablet Portrait */
@@media (max-width: 991px) {
    .auth-shell {
        flex-direction: column;
    }

    .auth-left {
        flex: none;
        max-width: 100%;
        width: 100%;
        min-height: auto;
        padding: var(--space-3xl) var(--space-2xl) var(--space-2xl);
    }

    .auth-left-content {
        max-width: 600px;
        margin: 0 auto;
        padding: 0;
    }

    .auth-headline {
        margin-bottom: var(--space-2xl);
    }

    .auth-headline h1 {
        font-size: var(--font-size-2xl);
    }

    .auth-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-base);
        margin-bottom: var(--space-xl);
    }

    .feature-item {
        flex: 0 0 calc(50% - var(--space-sm));
    }

    .auth-visual {
        display: none;
    }

    .auth-left-footer {
        display: none;
    }

    .auth-right {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: var(--space-2xl);
    }

    .auth-right-wrapper {
        max-width: 440px;
    }
}

/* Mobile */
@@media (max-width: 640px) {
    .auth-left {
        padding: var(--space-2xl) var(--space-lg);
    }

    .auth-left-content {
        text-align: center;
    }

    .auth-brand {
        justify-content: center;
        margin-bottom: var(--space-2xl);
    }

    .auth-headline h1 {
        font-size: var(--font-size-xl);
    }

    .auth-subtitle {
        font-size: var(--font-size-sm);
    }

    .auth-features {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .feature-item {
        flex: none;
        width: auto;
        text-align: left;
    }

    .auth-right {
        padding: var(--space-lg);
    }

    .login-card {
        padding: var(--space-2xl) var(--space-lg);
        border-radius: var(--radius-xl);
    }

    .login-logo-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .login-title {
        font-size: var(--font-size-lg);
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .forgot-link {
        align-self: flex-end;
        margin-top: calc(-1 * var(--space-xs));
    }

    .security-indicator {
        margin-bottom: var(--space-base);
    }

    #toast-container {
        right: var(--space-base);
        left: var(--space-base);
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

/* Small Mobile */
@@media (max-width: 380px) {
    .auth-left {
        padding: var(--space-lg) var(--space-base);
    }

    .auth-right {
        padding: var(--space-base);
    }

    .login-card {
        padding: var(--space-xl) var(--space-base);
    }

    .feature-text span {
        display: none;
    }
}

/* Landscape phone */
@@media (max-height: 500px) and (orientation: landscape) {
    .auth-shell {
        flex-direction: row;
    }

    .auth-left {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .auth-headline {
        margin-bottom: var(--space-lg);
    }

    .auth-features {
        display: none;
    }

    .auth-right {
        flex: 0 0 60%;
        max-width: 60%;
        overflow-y: auto;
    }
}

/* High DPI screens */
@@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .field-input {
        -webkit-font-smoothing: antialiased;
    }
}

/* Print */
@@media print {
    .auth-left {
        display: none;
    }

    .auth-right {
        flex: 1;
        max-width: 100%;
    }
}

/* ============================================================
   FIXED LOGIN SCREEN - NO SCROLL
   ============================================================ */

html,
body.login-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.auth-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}


/* LEFT PANEL */
.auth-left {
    height: 100vh;
    overflow: hidden;
}

.auth-left-content {
    max-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* Reduce left content spacing */
.auth-brand {
    margin-bottom: 1.5rem;
}

.auth-headline {
    margin-bottom: 1.5rem;
}

.auth-headline h1 {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.auth-subtitle {
    font-size: .9rem;
}


/* Smaller invoice animation cards */
.auth-visual {
    height: 110px;
    margin-bottom: 1.5rem;
}

.visual-card {
    width: 220px;
    padding: .75rem 1rem;
}


/* RIGHT PANEL */
.auth-right {
    height: 100vh;
    overflow: hidden;
    padding: 1rem;
}


.auth-right-wrapper {
    width: 100%;
    max-width: 420px;
}


/* Login Card Compact */
.login-card {
    padding: 1.75rem 2rem;
    border-radius: 18px;
}


/* Header */
.login-card-header {
    margin-bottom: 1.25rem;
}


.login-title {
    font-size: 1.35rem;
}


.login-subtitle {
    font-size: .8rem;
}


/* Form spacing */
.login-form {
    gap: 1rem;
}


/* Inputs */
.field-input {
    height: 44px;
}


/* Button */
.btn-login {
    height: 44px;
}


/* Remove unnecessary footer height */
.auth-left-footer {
    margin-top: 1rem;
}


/* Mobile responsive */
@@media(max-width:991px){

    html,
    body.login-body {
        overflow:auto;
    }

    .auth-shell {
        height:auto;
        min-height:100vh;
    }

    .auth-left,
    .auth-right {
        height:auto;
    }

    }
    .no-scroll {
        overflow: hidden !important;
    }
    ::-webkit-scrollbar {
        display: none;
    }
        .login-logo {
            width: 220px;
            height: 80px;
            margin: 0 auto 25px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

            .login-logo img {
                width: auto;
                height: 65px;
                object-fit: contain;
                position: relative;
                top: 18px;
            }