/* ═══════════════════════════════════════════════════════════════════════════
   Cisgenics Identity — Auth Splash Treatment (SCRUM-1074)
   Continues the webapp's pre-login SSO splash aesthetic on every Account
   page: dark teal gradient + dot pattern, big white heading, gradient-green
   CTA buttons, white language pill. No card, or a barely-there one.

   Sampled from vnv-cisgenics-web (branch: development, not yet on
   preproduction) — src/features/auth/components/AuthLayout.tsx and
   Login.tsx (commit 47e379579, "redesign login UI with SSO countdown
   modal"). Colors/keyframes below are copied verbatim from that source.

   Loaded after identity.css in _Layout.cshtml. _AdminLayout.cshtml never
   links this file, so nothing here reaches the Admin panel.

   html { font-size: 14px } (see identity.css) — all sizes here are px,
   never rem, to avoid accidental scaling.
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes cisAuthGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cisAuthOrbDrift {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
    50%      { transform: translate(-48%, -52%) scale(1.08); opacity: 1; }
}

@keyframes cisAuthShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* ── Page background: teal gradient + dot pattern + drifting glow ───────── */
body {
    position: relative;
    background-color: #00131e;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(0, 71, 68, 0.55) 0%, transparent 55%),
        radial-gradient(circle at 82% 78%, rgba(0, 96, 92, 0.45) 0%, transparent 60%),
        linear-gradient(135deg, #001824 0%, #002031 45%, #00131e 100%);
    background-size: 180% 180%;
    background-repeat: no-repeat;
    animation: cisAuthGradientShift 22s ease-in-out infinite;
}

/* Subtle dot pattern, faded toward the edges */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

/* Soft drifting teal glow behind the centered content */
body::after {
    content: "";
    position: fixed;
    width: 720px;
    height: 720px;
    left: 50%;
    top: 50%;
    background: radial-gradient(circle, rgba(0, 71, 68, 0.4) 0%, rgba(0, 71, 68, 0.12) 40%, transparent 70%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
    animation: cisAuthOrbDrift 14s ease-in-out infinite;
}

main {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    body, body::after { animation: none; }
}

/* ── Barely-there panel — replaces the old heavy card ────────────────────── */
.auth-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}

/* ── Heading / subtitle hierarchy, matching the splash ───────────────────── */
.auth-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #fff;
    text-align: center;
}

.auth-subtitle {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

/* ── Primary CTA — wide, gradient-green fill ─────────────────────────────── */
.auth-btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #004744 0%, #006a66 100%);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    background-size: 200% 100%;
    animation: cisAuthShimmer 3.5s linear infinite;
    pointer-events: none;
}

.auth-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.auth-btn-primary:disabled,
.auth-btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .auth-btn-primary::before { animation: none; }
}

/* ── Language pill — white bg / dark text, dropdown stays readable ───────── */
.auth-lang-pill {
    background: rgba(255, 255, 255, 0.92);
    color: #0b2027;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: background 0.15s ease, transform 0.15s ease;
}
.auth-lang-pill:hover,
.auth-lang-pill:focus {
    background: #fff;
    color: #0b2027;
    border-color: transparent;
}

.auth-lang-drop {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.auth-lang-drop button {
    color: #0b2027;
}
.auth-lang-drop button:hover {
    background: rgba(11, 32, 39, 0.06);
    color: #0b2027;
}
