/**
 * Login — premium reservation atmosphere (no video)
 */

.auth-bg {
    background: var(--si-bg-base);
}

.auth-bg__base {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 130% 90% at 50% 115%, rgba(4, 47, 46, 0.7) 0%, transparent 58%),
        radial-gradient(ellipse 100% 70% at 8% 18%, rgba(45, 212, 191, 0.22) 0%, transparent 52%),
        radial-gradient(ellipse 80% 55% at 92% 12%, rgba(212, 168, 75, 0.18) 0%, transparent 48%),
        radial-gradient(ellipse 60% 40% at 50% 60%, rgba(17, 94, 89, 0.12) 0%, transparent 70%),
        linear-gradient(168deg, #050c14 0%, #0b1220 32%, #071a1f 68%, #031210 100%);
}

.auth-bg__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.92;
}

.auth-bg__horizon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(48vh, 420px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-bg__horizon path {
    fill: url(#auth-horizon-fill);
}

.auth-bg__aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.72;
    mix-blend-mode: screen;
    pointer-events: none;
    will-change: transform;
}

.auth-bg__aurora--teal {
    width: min(80vw, 760px);
    height: min(80vw, 760px);
    top: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.45) 0%, rgba(17, 94, 89, 0.18) 45%, transparent 72%);
    animation: auth-aurora-drift-a 28s var(--si-ease-out) infinite alternate;
}

.auth-bg__aurora--gold {
    width: min(65vw, 600px);
    height: min(65vw, 600px);
    top: 5%;
    right: -8%;
    background: radial-gradient(circle, rgba(212, 168, 75, 0.38) 0%, rgba(180, 130, 40, 0.12) 50%, transparent 74%);
    animation: auth-aurora-drift-b 34s var(--si-ease-out) infinite alternate;
}

.auth-bg__aurora--rose {
    width: min(50vw, 480px);
    height: min(50vw, 480px);
    bottom: 15%;
    left: 35%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.22) 0%, transparent 68%);
    animation: auth-aurora-drift-c 22s var(--si-ease-out) infinite alternate;
}

.auth-bg__grid {
    position: absolute;
    inset: 0;
    opacity: 0.65;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
    background-position: center center;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 15%, transparent 82%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 15%, transparent 82%);
}

/* Orbit rings — reservation radar motif */
.auth-bg__orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 720px);
    height: min(92vw, 720px);
    transform: translate(-50%, -52%);
    pointer-events: none;
}

.auth-bg__orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.12);
}

.auth-bg__orbit-ring--1 {
    inset: 0;
    animation: auth-orbit-spin 80s linear infinite;
    border-color: rgba(45, 212, 191, 0.14);
}

.auth-bg__orbit-ring--2 {
    inset: 12%;
    border-color: rgba(212, 168, 75, 0.1);
    animation: auth-orbit-spin 55s linear infinite reverse;
}

.auth-bg__orbit-ring--3 {
    inset: 24%;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.08);
    animation: auth-orbit-spin 100s linear infinite;
}

.auth-bg__orbit-ring--1::after,
.auth-bg__orbit-ring--2::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px currentColor;
}

.auth-bg__orbit-ring--1::after {
    background: var(--si-teal-600);
    color: var(--si-teal-600);
}

.auth-bg__orbit-ring--2::after {
    background: var(--si-gold-500);
    color: var(--si-gold-500);
}

/* Floating reservation widgets */
.auth-bg__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-bg__widget {
    position: absolute;
    padding: 0.85rem 1rem;
    border-radius: var(--si-radius-lg);
    background: rgba(17, 26, 46, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: var(--si-shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: auth-widget-float 6s var(--si-ease-out) infinite alternate;
}

.auth-bg__widget--calendar {
    top: 18%;
    left: 5%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    min-width: 148px;
    animation-delay: -1.5s;
}

.auth-bg__widget--arrivals {
    bottom: 22%;
    right: 6%;
    animation-delay: -3s;
}

.auth-bg__widget--rooms {
    top: 22%;
    right: 7%;
    animation-delay: -0.5s;
}

.auth-bg__widget-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--si-radius-md);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
    display: grid;
    place-items: center;
    color: var(--si-teal-400);
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-bg__widget--arrivals .auth-bg__widget-icon {
    background: rgba(212, 168, 75, 0.12);
    border-color: rgba(212, 168, 75, 0.25);
    color: var(--si-gold-400);
}

.auth-bg__widget-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--si-text-kpi-value);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.auth-bg__widget-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--si-text-readable-muted);
}

.auth-bg__week-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 48px;
}

.auth-bg__week-bars span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.55) 0%, rgba(17, 94, 89, 0.35) 100%);
    opacity: 0.7;
    animation: auth-bar-pulse 4s var(--si-ease-out) infinite;
}

.auth-bg__week-bars span.is-active {
    background: linear-gradient(180deg, var(--si-gold-400) 0%, var(--si-gold-500) 100%);
    opacity: 1;
    box-shadow: 0 0 16px rgba(212, 168, 75, 0.35);
}

.auth-bg__week-bars span:nth-child(2) { animation-delay: 0.4s; }
.auth-bg__week-bars span:nth-child(3) { animation-delay: 0.8s; }
.auth-bg__week-bars span:nth-child(4) { animation-delay: 1.2s; }
.auth-bg__week-bars span:nth-child(5) { animation-delay: 1.6s; }
.auth-bg__week-bars span:nth-child(6) { animation-delay: 2s; }
.auth-bg__week-bars span:nth-child(7) { animation-delay: 2.4s; }

.auth-bg__ticks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.7;
}

.auth-bg__tick {
    position: absolute;
    height: 2px;
    border-radius: var(--si-radius-pill);
    background: linear-gradient(90deg, transparent, var(--si-teal-600), transparent);
    transform-origin: left center;
    animation: auth-tick-pulse 4s var(--si-ease-out) infinite;
}

.auth-bg__tick--gold {
    background: linear-gradient(90deg, transparent, var(--si-gold-500), transparent);
    animation-duration: 5.5s;
}

.auth-bg__scrim {
    background:
        radial-gradient(ellipse 42% 38% at 50% 48%, transparent 0%, rgba(6, 10, 16, 0.18) 60%, rgba(4, 8, 12, 0.55) 100%),
        linear-gradient(180deg, rgba(6, 10, 16, 0.15) 0%, rgba(6, 10, 16, 0.35) 55%, rgba(4, 8, 12, 0.7) 100%),
        radial-gradient(ellipse 100% 45% at 50% 0%, rgba(20, 184, 166, 0.12), transparent 62%);
}

/* Premium login card */
.auth-card--premium {
    position: relative;
    max-width: 440px;
    background: rgba(12, 20, 36, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.16);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(45, 212, 191, 0.06);
    overflow: hidden;
}

.auth-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--si-teal-600) 25%, var(--si-gold-500) 50%, var(--si-teal-600) 75%, transparent 100%);
    opacity: 0.9;
}

.auth-card__shine {
    position: absolute;
    inset: 0;
    background: var(--si-gradient-card-shine);
    pointer-events: none;
}

.auth-card--premium .card-body {
    position: relative;
    padding: 2.25rem 2rem 2rem;
}

.auth-card__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--si-teal-400);
    padding: 0.25rem 0.65rem;
    border-radius: var(--si-radius-pill);
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.auth-card__title {
    color: var(--si-text);
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    color: var(--si-text-readable-muted);
}

.auth-form__label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--si-text-label);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.auth-form__label .bi {
    font-size: 0.8rem;
    color: var(--si-teal-400);
    opacity: 0.85;
}

.app-body--auth .auth-card--premium .auth-form__input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.app-body--auth .auth-card--premium .auth-form__input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}

.app-body--auth .auth-card--premium .auth-submit-btn {
    background: linear-gradient(135deg, var(--si-teal-600) 0%, var(--si-teal-700) 100%);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: #fff;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25);
    margin-top: 0.25rem;
}

.app-body--auth .auth-card--premium .auth-submit-btn:hover,
.app-body--auth .auth-card--premium .auth-submit-btn:focus-visible {
    background: linear-gradient(135deg, var(--si-teal-400) 0%, var(--si-teal-600) 100%);
    border-color: var(--si-teal-400);
    color: #042f2e;
    box-shadow: 0 6px 28px rgba(45, 212, 191, 0.35);
}

@keyframes auth-aurora-drift-a {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(6%, 8%) scale(1.08); }
}

@keyframes auth-aurora-drift-b {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 6%) scale(1.06); }
}

@keyframes auth-aurora-drift-c {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, -5%) scale(1.1); }
}

@keyframes auth-tick-pulse {
    0%, 100% { opacity: 0.2; transform: scaleX(0.85); }
    50%      { opacity: 0.7; transform: scaleX(1); }
}

@keyframes auth-orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes auth-widget-float {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes auth-bar-pulse {
    0%, 100% { opacity: 0.65; }
    50%      { opacity: 1; }
}

@media (max-width: 900px) {
    .auth-bg__widget {
        display: none;
    }

    .auth-bg__orbit {
        width: min(110vw, 600px);
        height: min(110vw, 600px);
        opacity: 0.6;
    }
}

[data-theme="light"] .auth-bg__base {
    background:
        radial-gradient(ellipse 100% 70% at 50% 100%, rgba(20, 184, 166, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 80% 50% at 5% 10%, rgba(45, 212, 191, 0.14) 0%, transparent 50%),
        linear-gradient(168deg, #e8eef5 0%, #f4f7fb 45%, #eef5f3 100%);
}

[data-theme="light"] .auth-bg__aurora {
    opacity: 0.4;
    mix-blend-mode: multiply;
}

[data-theme="light"] .auth-bg__grid {
    opacity: 0.4;
}

[data-theme="light"] .auth-bg__scrim {
    background:
        radial-gradient(ellipse 42% 38% at 50% 48%, transparent 0%, rgba(244, 247, 251, 0.35) 60%, rgba(232, 238, 245, 0.7) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(244, 247, 251, 0.5) 100%);
}

[data-theme="light"] .auth-bg__horizon {
    opacity: 0.28;
}

[data-theme="light"] .auth-bg__widget {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .auth-card--premium {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .app-body--auth .auth-card--premium .auth-form__input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--si-text);
}

@media (prefers-reduced-motion: reduce) {
    .auth-bg__aurora,
    .auth-bg__tick,
    .auth-bg__widget,
    .auth-bg__orbit-ring,
    .auth-bg__week-bars span {
        animation: none;
    }

    .auth-bg__aurora--teal { opacity: 0.5; }
    .auth-bg__aurora--gold { opacity: 0.38; }
    .auth-bg__aurora--rose { opacity: 0.3; }
}
