/* ==========================================================================
   MODERN STOREFRONT AUTHENTICATION SHELL (Sign In / Register / Forgot Password)
   ========================================================================== */

.auth-container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.auth-shell-card {
    border-radius: var(--store-card-radius, 1.25rem) !important;
    background: var(--bs-body-bg);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

[data-bs-theme="dark"] .auth-shell-card {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

.auth-brand-panel {
    background: linear-gradient(145deg, var(--store-primary, var(--bs-primary, #4f46e5)) 0%, #1e1b4b 100%);
    position: relative;
}

.auth-brand-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.auth-brand-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #ffffff;
}

.auth-perk-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.95rem;
}

.auth-mobile-brand-badge {
    width: 38px;
    height: 38px;
    background: var(--store-primary, var(--bs-primary, #4f46e5));
}

.auth-mode-tabs {
    background-color: var(--bs-tertiary-bg);
}

.auth-mode-tab {
    transition: all 0.2s ease;
    color: var(--bs-secondary-color);
}

.auth-mode-tab.active {
    background: var(--bs-body-bg);
    color: var(--store-primary, var(--bs-primary)) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .auth-mode-tab.active {
    background: #1f2937;
    color: #ffffff !important;
}

.auth-input-group {
    border: 1.5px solid var(--bs-border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-group:focus-within {
    border-color: var(--store-primary, var(--bs-primary));
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb, 79, 70, 229), 0.15);
}

.auth-input-group .input-group-text,
.auth-input-group .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.auth-input-group .form-control {
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
    font-size: 0.95rem;
}

.auth-pw-toggle {
    cursor: pointer;
}

.auth-pw-toggle:hover {
    color: var(--store-primary, var(--bs-primary)) !important;
}

.auth-divider {
    position: relative;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--bs-border-color);
    z-index: 1;
}

.auth-divider span {
    position: relative;
    z-index: 2;
    background: var(--bs-body-bg);
    padding: 0 0.85rem;
}

[data-bs-theme="dark"] .auth-divider span {
    background: #111827;
}

.auth-consent-box {
    border-color: var(--bs-border-color) !important;
}

.tracking-wider {
    letter-spacing: 0.05em;
}