/* ── Shell ── */
.app-shell {
    min-height: 100vh;
    opacity: 0;
}

.app-shell.is-ready {
    opacity: 1;
    transition: opacity 220ms ease;
}

/* ── Professional Stacked Layout (TRUE FLOAT) ── */

.auth-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--color-background);
}

/* 1. Hero Layer (Top Banner) - Reduced Height */
.auth-hero-banner {
    height: 28vh; /* Reduced from 38vh to take less space */
    min-height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 55px; /* Push branding lower toward the overlap */
}

/* Branding inside Hero */
.hero-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-site-name {
    font-size: 18px;
    font-weight: 700;
}

/* 2. Content Body (Overlaps Hero) - PUSHED UP MORE */
.auth-content-body {
    flex: 1;
    position: relative;
    z-index: 10;
    margin-top: -50px; /* Pushed up further from -32px */
    border-radius: 32px 32px 0 0;
    background: var(--color-surface);
    padding: 30px 22px 40px;
    display: flex;
    flex-direction: column;
}

/* 3. Floating Tab Switcher (TRULY INDEPENDENT) */
.auth-tab-pill {
    display: flex;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 4px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); /* DEEP FLOATING SHADOW */
    width: 100%;
    max-width: 320px;
}

[data-theme="dark"] .auth-tab-pill {
    background: rgba(255, 255, 255, 0.08);
}

.auth-tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 220ms ease;
    text-decoration: none;
    color: var(--text-secondary);
}

.auth-tab-item.is-active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 6px 15px rgba(242, 84, 5, 0.35);
}

/* 4. Input Card (TRULY FLOATING BOX) */
.auth-input-card {
    background: var(--color-surface);
    border: none;
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1); /* DEEP FLOATING SHADOW */
}

/* Iconic Unified Inputs */
.auth-input-row {
    display: flex;
    align-items: center;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    height: 54px;
    padding: 0 16px;
    gap: 12px;
    transition: all 200ms ease;
}

.auth-input-row:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 84, 5, 0.1);
}

.auth-input-icon {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.auth-input-field {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
}

.auth-input-field::placeholder {
    color: var(--text-muted);
}

.auth-phone-prefix {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    padding-right: 12px;
    border-right: 1px solid var(--color-border);
}

/* Password Eye Toggle Button */
.inline-icon-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.inline-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.inline-icon-btn .icon-eye-closed {
    display: none;
}

.inline-icon-btn.is-visible .icon-eye-open {
    display: none;
}

.inline-icon-btn.is-visible .icon-eye-closed {
    display: block;
}

/* 5. External Actions Area */
.auth-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.auth-primary-btn {
    width: 100%;
    height: 54px;
    border-radius: 999px;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(242, 84, 5, 0.3);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.auth-primary-btn:active {
    transform: scale(0.97);
}

.auth-secondary-btn {
    width: 100%;
    height: 52px;
    border-radius: 999px;
    background: #ffdb8e;
    border: none;
    color: rgba(0, 0, 0, 0.7);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .auth-secondary-btn {
    background: var(--color-accent);
}

/* Helper Links */
.auth-forgot-link {
    align-self: flex-end;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.auth-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-link-orange {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

/* Toasts */
.toast-stack {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10000;
}

.toast-item {
    background: rgba(40, 40, 40, 0.9);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 13.5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-content-body {
    animation: fadeInUp 550ms cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

/* Device Constraints */
@media (min-width: 480px) {
    .auth-page-container {
        max-width: 440px;
        margin: 20px auto;
        border-radius: 40px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }
}