/* Styles for resources/views/auth/layout/app.blade.php */
:root {
            --gold:        #C9A84C;
            --gold-lt:     #E8C96A;
            --gold-pale:   #F5E6B8;
            --gold-dim:    rgba(201,168,76,0.15);
            --gold-glow:   rgba(201,168,76,0.08);
            --navy:        #060E1A;
            --navy-mid:    #0A1628;
            --navy-light:  #0F1F38;
            --teal:        #0B2E38;
            --teal-mid:    #0F3D4A;
            --border:      rgba(201,168,76,0.18);
            --muted:       rgba(255,255,255,0.35);
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html, body {
            height: 100%; width: 100%;
            font-family: 'Outfit', sans-serif;
            background: var(--navy);
            overflow: hidden;
        }

        /* ══════════ MAIN WRAPPER ══════════ */
        .fdms-wrap {
            position: fixed; inset: 0;
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            z-index: 100;
        }

        /* ══════════ LEFT PANEL ══════════ */
        .fdms-left {
            position: relative;
            display: flex;
            flex-direction: column;
            padding: 2.4rem 3rem;
            overflow: hidden;
            background: linear-gradient(160deg, #060E1A 0%, #0A1628 30%, #0B2E38 65%, #0F3D4A 100%);
            perspective: 1400px;
        }

        /* ── BG LAYERS ── */

        /* Large diagonal gold stripe */
        .bg-stripe {
            position: absolute;
            top: -10%; left: 30%;
            width: 2px; height: 130%;
            background: linear-gradient(180deg, transparent, rgba(201,168,76,0.25) 30%, rgba(201,168,76,0.35) 55%, transparent);
            transform: rotate(18deg);
            pointer-events: none;
        }
        .bg-stripe-2 {
            position: absolute;
            top: -10%; left: 55%;
            width: 1px; height: 130%;
            background: linear-gradient(180deg, transparent, rgba(201,168,76,0.1) 40%, transparent);
            transform: rotate(18deg);
            pointer-events: none;
        }

        /* Hexagonal grid SVG */
        .bg-hex {
            position: absolute; inset: 0;
            pointer-events: none;
        }

        /* Corner glow blobs (parallax-enabled) */
        .bg-blob-tl {
            position: absolute; top: -80px; left: -80px;
            width: 380px; height: 380px;
            background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 65%);
            pointer-events: none;
            will-change: transform;
        }
        .bg-blob-br {
            position: absolute; bottom: -100px; right: -60px;
            width: 420px; height: 420px;
            background: radial-gradient(circle, rgba(15,61,74,0.8) 0%, transparent 65%);
            pointer-events: none;
            will-change: transform;
        }
        .bg-blob-center {
            position: absolute; top: 35%; left: 25%;
            width: 500px; height: 500px;
            background: radial-gradient(circle, rgba(201,168,76,0.04) 0%, transparent 60%);
            translate: -50% -50%;
            pointer-events: none;
            will-change: transform;
        }

        /* Soft cursor-follow spotlight */
        .cursor-glow {
            position: absolute; inset: 0;
            pointer-events: none; z-index: 1;
            opacity: 0;
            transition: opacity .5s ease;
            background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(201,168,76,0.12), transparent 70%);
        }

        /* Thin corner frame lines */
        .corner-tl, .corner-br {
            position: absolute;
            width: 60px; height: 60px;
            pointer-events: none;
        }
        .corner-tl {
            top: 18px; left: 18px;
            border-top: 1.5px solid rgba(201,168,76,0.35);
            border-left: 1.5px solid rgba(201,168,76,0.35);
        }
        .corner-br {
            bottom: 18px; right: 18px;
            border-bottom: 1.5px solid rgba(201,168,76,0.35);
            border-right: 1.5px solid rgba(201,168,76,0.35);
        }

        /* Horizontal scan line */
        .scan-line {
            position: absolute;
            left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.3) 20%, rgba(201,168,76,0.5) 50%, rgba(201,168,76,0.3) 80%, transparent 100%);
            animation: scanMove 6s ease-in-out infinite;
            pointer-events: none;
        }
        @keyframes scanMove {
            0%   { top: 15%; opacity: 0; }
            10%  { opacity: 1; }
            90%  { opacity: 1; }
            100% { top: 85%; opacity: 0; }
        }

        /* ── LOGO ── */
        .fdms-logo {
            position: relative; z-index: 2;
            animation: fUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
        }
        .fdms-logo img {
            height: 40px; width: auto;
            object-fit: contain;
            filter: drop-shadow(0 2px 16px rgba(201,168,76,0.3)) brightness(1.05);
        }
        .fdms-logo-fallback { display: none; align-items: center; gap: 10px; }
        .fdms-logo img.error + .fdms-logo-fallback { display: flex; }
        .fdms-logo-box {
            width: 38px; height: 38px;
            background: linear-gradient(135deg, var(--gold-lt), var(--gold));
            border-radius: 9px;
            display: flex; align-items: center; justify-content: center;
        }
        .fdms-logo-box svg { color: #060E1A; }
        .fdms-logo-wordmark {
            font-family: 'Playfair Display', serif;
            font-size: 1.85rem; font-weight: 700;
            color: #fff; letter-spacing: -0.01em;
        }
        .fdms-logo-wordmark b { color: var(--gold); }

        /* ── CENTER ── */
        .fdms-center {
            position: relative; z-index: 2;
            flex: 1;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            text-align: center;
            padding: 0.5rem 0;
            animation: fUp 0.9s 0.1s cubic-bezier(0.22,1,0.36,1) both;
        }

        /* Illustration ring / 3D tilt stage */
        .fdms-frame {
            position: relative;
            width: 300px; height: 300px;
            margin: 0 auto 2.2rem;
            transform-style: preserve-3d;
            will-change: transform;
            transition: transform .15s ease-out;
        }

        .fdms-frame-ring {
            position: absolute; inset: 0;
            border-radius: 50%;
            border: 1px dashed rgba(201,168,76,0.2);
            animation: ringRotate 20s linear infinite;
        }
        .fdms-frame-ring-2 {
            position: absolute; inset: 20px;
            border-radius: 50%;
            border: 1px solid rgba(201,168,76,0.1);
            animation: ringRotate 14s linear infinite reverse;
        }
        @keyframes ringRotate { to { transform: rotate(360deg); } }

        /* 4 corner markers on ring */
        .fdms-frame-ring::before, .fdms-frame-ring::after {
            content: '';
            position: absolute; top: -3px; left: 50%;
            width: 6px; height: 6px;
            background: var(--gold);
            border-radius: 50%;
            transform: translateX(-50%);
        }
        .fdms-frame-ring::after {
            top: auto; bottom: -3px;
        }

        .fdms-frame-bg {
            position: absolute; inset: 30px;
            background: radial-gradient(circle at 40% 35%, rgba(201,168,76,0.1) 0%, rgba(15,61,74,0.4) 60%, transparent 100%);
            border: 1px solid rgba(201,168,76,0.15);
            border-radius: 40% 60% 55% 45% / 45% 45% 55% 55%;
            animation: fMorph 8s ease-in-out infinite;
        }
        @keyframes fMorph {
            0%,100% { border-radius: 40% 60% 55% 45% / 45% 45% 55% 55%; }
            33%      { border-radius: 55% 45% 40% 60% / 55% 45% 55% 45%; }
            66%      { border-radius: 45% 55% 60% 40% / 45% 55% 45% 55%; }
        }

        .fdms-frame img.fdms-frame-img {
            position: absolute; inset: 0;
            width: 100%; height: 100%;
            object-fit: contain; z-index: 2;
            filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5));
            animation: fFloat 4s ease-in-out infinite;
        }
        @keyframes fFloat {
            0%,100% { transform: translateY(0); }
            50%      { transform: translateY(-9px); }
        }

        /* ── Floating glass badges (parallax + independent float) ── */
        .f-badge {
            position: absolute;
            z-index: 4;
            display: flex; align-items: center; gap: 9px;
            padding: 9px 14px 9px 9px;
            min-width: max-content;
            background: linear-gradient(150deg, rgba(24,44,58,0.96) 0%, rgba(9,19,27,0.94) 100%);
            border: 1px solid rgba(201,168,76,0.45);
            border-radius: 13px;
            backdrop-filter: blur(16px) saturate(140%);
            -webkit-backdrop-filter: blur(16px) saturate(140%);
            box-shadow: 0 18px 38px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
            opacity: 0;
            will-change: transform;
            transition: box-shadow .3s ease, border-color .3s ease;
            cursor: default;
        }
        .f-badge:hover {
            border-color: rgba(201,168,76,0.7);
            box-shadow: 0 22px 46px rgba(0,0,0,0.65), 0 0 0 1px rgba(201,168,76,0.5);
        }
        .f-badge-ico {
            width: 30px; height: 30px; flex: none;
            border-radius: 9px;
            background: rgba(201,168,76,0.24);
            display: flex; align-items: center; justify-content: center;
            color: var(--gold-lt);
        }
        .f-badge-ico svg { display: block; }
        .f-badge-val {
            font-family: 'Playfair Display', serif;
            font-size: 0.98rem; font-weight: 700;
            color: var(--gold-lt); line-height: 1.15; white-space: nowrap;
        }
        .f-badge-lbl {
            font-size: 0.62rem; font-weight: 400;
            color: rgba(255,255,255,0.68);
            letter-spacing: 0.03em; white-space: nowrap;
        }
        .f-badge-check {
            font-size: 0.74rem; font-weight: 600; color: #fff; white-space: nowrap;
        }
        .f-badge-check .f-badge-ico { background: rgba(76,201,140,0.28); color: #4CE0A0; }

        .f-badge-1 { top: 3%;    left: -7%;  animation: badgeIn .7s cubic-bezier(.22,1,.36,1) .5s both, badgeFloat 4.6s ease-in-out 1.2s infinite; }
        .f-badge-2 { top: -5%;   right: -9%; animation: badgeIn .7s cubic-bezier(.22,1,.36,1) .65s both, badgeFloat 5.2s ease-in-out 1.35s infinite; }
        .f-badge-3 { bottom: 7%; left: -9%;  animation: badgeIn .7s cubic-bezier(.22,1,.36,1) .8s both, badgeFloat 4.9s ease-in-out 1.5s infinite; }
        .f-badge-4 { bottom: -3%; right: -5%; animation: badgeIn .7s cubic-bezier(.22,1,.36,1) .95s both, badgeFloat 5.6s ease-in-out 1.65s infinite; }

        @keyframes badgeIn {
            from { opacity: 0; translate: 0 14px; scale: 0.9; }
            to   { opacity: 1; translate: 0 0;    scale: 1; }
        }
        @keyframes badgeFloat {
            0%, 100% { translate: 0 0; }
            50%      { translate: 0 -8px; }
        }

        .fdms-headline {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem; font-weight: 700;
            color: #fff; line-height: 1.25;
            margin-bottom: 0.85rem;
        }
        .fdms-headline em {
            font-style: italic; color: var(--gold-lt);
            display: block;
        }

        /* Gold underline */
        .fdms-divider {
            width: 60px; height: 2px;
            background: linear-gradient(90deg, var(--gold), transparent);
            margin: 0 auto 1rem;
            border-radius: 2px;
        }

        .fdms-desc {
            font-size: 0.81rem; font-weight: 300;
            color: rgba(255,255,255,0.4);
            line-height: 1.85; max-width: 280px;
            margin: 0 auto 1.8rem;
        }

        /* Pills */
        .fdms-pills { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; max-width: 320px; margin: 0 auto; }
        .fdms-pill {
            font-size: 0.67rem; font-weight: 500;
            color: var(--gold-lt);
            background: rgba(201,168,76,0.07);
            border: 1px solid rgba(201,168,76,0.2);
            border-radius: 20px;
            padding: 5px 13px;
            letter-spacing: 0.02em;
            transition: background 0.25s ease, border-color 0.25s ease, translate 0.25s ease, box-shadow .25s ease;
        }
        .fdms-pill:hover {
            background: rgba(201,168,76,0.15);
            border-color: rgba(201,168,76,0.4);
            translate: 0 -2px;
            box-shadow: 0 8px 18px rgba(201,168,76,0.15);
        }

        /* ── FOOTER ── */
        .fdms-foot {
            position: relative; z-index: 2;
            display: flex; align-items: center; justify-content: space-between;
            animation: fUp 0.7s 0.06s cubic-bezier(0.22,1,0.36,1) both;
        }
        .fdms-foot-logo img {
            height: 40px; width: auto; object-fit: contain;
            opacity: 0.8;
            filter: drop-shadow(0 1px 6px rgba(201,168,76,0.2));
        }
        .fdms-foot-brand {
            font-family: 'Playfair Display', serif;
            font-size: 0.9rem; font-weight: 700;
            color: var(--gold);
            display: flex; align-items: center; gap: 6px;
        }
        .fdms-copy {
            font-size: 0.63rem; letter-spacing: 0.03em;
            color: white !important;
        }

        /* ══════════ RIGHT PANEL ══════════ */
        .fdms-right {
            position: relative; overflow: hidden;
            display: flex; align-items: center; justify-content: center;
            background: var(--navy-mid);
            transition: background .35s ease;
        }
        html.light .fdms-right {
            background: linear-gradient(160deg, #f7f8fa 0%, #eef1f5 55%, #e9edf3 100%);
        }

        /* Curved bridge from left — stays on-brand (dark) in both themes,
           like a deliberate accent connecting the two panels */
        .fdms-right::before {
            content: '';
            position: absolute; top: -5%; left: -80px;
            width: 180px; height: 110%;
            background: linear-gradient(160deg, #060E1A 0%, #0A1628 30%, #0B2E38 65%, #0F3D4A 100%);
            border-radius: 0 60% 60% 0;
            z-index: 0;
        }

        /* Right panel ambient dots */
        .fdms-right-dots {
            position: absolute; inset: 0;
            background-image: radial-gradient(rgba(201,168,76,0.05) 1px, transparent 1px);
            background-size: 32px 32px;
            pointer-events: none; z-index: 0;
        }
        html.light .fdms-right-dots {
            background-image: radial-gradient(rgba(13,43,51,0.06) 1px, transparent 1px);
        }

        /* Right panel corner glow */
        .fdms-right-glow {
            position: absolute; top: -80px; right: -80px;
            width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 60%);
            pointer-events: none; z-index: 0;
        }
        .fdms-right-glow-bl {
            position: absolute; bottom: -80px; left: 40px;
            width: 300px; height: 300px;
            background: radial-gradient(circle, rgba(11,46,56,0.6) 0%, transparent 65%);
            pointer-events: none; z-index: 0;
        }
        html.light .fdms-right-glow-bl {
            background: radial-gradient(circle, rgba(13,74,86,0.07) 0%, transparent 65%);
        }

        /* Vertical gold line accent on right */
        .fdms-right-vline {
            position: absolute; right: 40px; top: 15%; bottom: 15%;
            width: 1px;
            background: linear-gradient(180deg, transparent, rgba(201,168,76,0.12) 40%, rgba(201,168,76,0.12) 60%, transparent);
            pointer-events: none; z-index: 0;
        }

        /* Theme toggle — top-right of the form panel */
        .fdms-theme-toggle.auth-toggle {
            position: absolute; top: 22px; right: 24px; z-index: 10;
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.14);
            color: rgba(255,255,255,0.7);
            backdrop-filter: blur(8px);
        }
        html.light .fdms-theme-toggle.auth-toggle {
            background: rgba(15,23,42,0.04);
            border-color: rgba(15,23,42,0.1);
            color: #475569;
        }
        .fdms-theme-toggle.auth-toggle:hover { color: var(--gold-lt, #e8c96a); border-color: var(--gold-lt, #e8c96a); }

        .fdms-right-inner {
            position: relative; z-index: 2;
            width: 100%;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            perspective: 1400px;
            padding: 1.5rem;
        }

        /* ── Animations ── */
        @keyframes fUp {
            from { opacity:0; transform:translateY(14px); }
            to   { opacity:1; transform:translateY(0); }
        }

        /* ── Reduced motion ── */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
                scroll-behavior: auto !important;
            }
        }

        /* ── Responsive ── */
        @media (max-width: 900px) {
            html, body { overflow-y: auto; height: auto; }
            .fdms-wrap { position: relative; grid-template-columns: 1fr; min-height: 100dvh; }
            .fdms-left { display: none; }
            .fdms-right::before { display: none; }
            .fdms-right { min-height: 100dvh; padding: 2.2rem 1rem; }
            .fdms-right-inner { padding: 0; }
        }
        @media (max-width: 420px) {
            .fdms-right { padding: 1.5rem 0.6rem; }
        }
        @media (min-width: 901px) and (max-height: 720px) {
            .fdms-left { padding: 1.5rem 2.6rem; }
            .fdms-frame { width: 220px; height: 220px; margin-bottom: 1.3rem; }
            .fdms-desc { display: none; }
            .f-badge-2, .f-badge-3 { display: none; }
        }
