/* ================= ALTIN KAPI — giriş ekranı ================= */
:root { --xg-gold-1: #f6dc97; --xg-gold-2: #e7bd63; --xg-gold-3: #b8862f; --xg-bg: #050a14; --xg-bg-2: #0a1426; }
body.fi-body { background: var(--xg-bg) !important; }
.xg { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); min-height: 100vh; min-height: 100dvh; background: var(--xg-bg); color: #e8ecf3; overflow: hidden; font-family: 'Montserrat', system-ui, sans-serif; }

/* --- Kapı açılışı --- */
.xg-door { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.xg-door-half { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #03060d; animation: xgDoor 1.05s cubic-bezier(.77, 0, .18, 1) .55s forwards; }
.xg-door-l { left: 0; transform-origin: left; }
.xg-door-r { right: 0; animation-name: xgDoorR; }
.xg-door-line { position: absolute; left: 50%; top: 50%; width: 2px; height: 0; transform: translate(-50%, -50%); background: linear-gradient(var(--xg-gold-1), var(--xg-gold-2), var(--xg-gold-3)); box-shadow: 0 0 24px 4px rgba(231, 189, 99, .55); animation: xgLine .55s cubic-bezier(.6, 0, .2, 1) forwards, xgLineOut .5s ease .95s forwards; }
@keyframes xgLine { to { height: 100%; } }
@keyframes xgLineOut { to { opacity: 0; width: 60px; filter: blur(14px); } }
@keyframes xgDoor { to { transform: translateX(-100%); } }
@keyframes xgDoorR { to { transform: translateX(100%); } }
.xg-no-door .xg-door { display: none; }

/* --- Sol sahne --- */
.xg-stage { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 96px); background: radial-gradient(120% 90% at 20% 10%, #0f1f3c 0%, var(--xg-bg-2) 45%, var(--xg-bg) 100%); border-right: 1px solid rgba(231, 189, 99, .16); overflow: hidden; isolation: isolate; }
.xg-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.xg-grid { position: absolute; inset: -2px; z-index: -2; background-image: linear-gradient(rgba(231, 189, 99, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 189, 99, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at 40% 45%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 40% 45%, #000 0%, transparent 70%); animation: xgGrid 30s linear infinite; }
@keyframes xgGrid { to { background-position: 64px 64px, 64px 64px; } }
.xg-spot { position: absolute; z-index: -1; width: 620px; height: 620px; left: var(--mx, 40%); top: var(--my, 40%); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(231, 189, 99, .22) 0%, rgba(231, 189, 99, .06) 38%, transparent 68%); transition: left .5s ease-out, top .5s ease-out; pointer-events: none; }

.xg-brand { max-width: 560px; }
.xg-logo-wrap { position: relative; display: inline-block; margin-bottom: 38px; }
.xg-logo-wrap::after { content: ''; position: absolute; inset: -30% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(231, 189, 99, .35), transparent); filter: blur(18px); animation: xgBreath 4.5s ease-in-out infinite; }
.xg-logo { height: clamp(64px, 7vw, 96px); width: auto; filter: drop-shadow(0 10px 30px rgba(231, 189, 99, .25)); animation: xgFloat 6s ease-in-out infinite; }
@keyframes xgBreath { 0%, 100% { opacity: .55; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes xgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.xg-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .32em; color: var(--xg-gold-2); }
.xg-slogan { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.xg-slogan span { background: linear-gradient(100deg, var(--xg-gold-1), var(--xg-gold-2) 40%, var(--xg-gold-3) 70%, var(--xg-gold-1)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: xgSheen 6s linear infinite; }
@keyframes xgSheen { to { background-position: 220% center; } }
.xg-sub { margin: 0; max-width: 440px; font-size: 16px; line-height: 1.7; color: #a9b3c4; }
.xg-brand > * { opacity: 0; transform: translateY(18px); animation: xgUp .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.xg-brand > :nth-child(1) { animation-delay: 1.35s; } .xg-brand > :nth-child(2) { animation-delay: 1.5s; } .xg-brand > :nth-child(3) { animation-delay: 1.6s; } .xg-brand > :nth-child(4) { animation-delay: 1.7s; }
.xg-no-door .xg-brand > * { animation-delay: .05s !important; }
@keyframes xgUp { to { opacity: 1; transform: none; } }

.xg-clock { position: absolute; left: clamp(40px, 6vw, 96px); bottom: clamp(28px, 5vh, 56px); display: flex; align-items: baseline; gap: 14px; color: #a9b3c4; }
.xg-clock strong { font-size: 30px; font-weight: 300; color: #fff; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.xg-greet { font-size: 13px; font-weight: 600; color: var(--xg-gold-2); text-transform: uppercase; letter-spacing: .2em; }
.xg-clock small { font-size: 13px; }

/* --- Sağ taraf --- */
.xg-side { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px clamp(20px, 4vw, 64px); background: radial-gradient(80% 60% at 70% 30%, rgba(231, 189, 99, .07), transparent 70%), var(--xg-bg); }
.xg-side-top { position: absolute; top: 26px; left: clamp(20px, 4vw, 48px); right: clamp(20px, 4vw, 48px); display: flex; justify-content: flex-end; align-items: center; }
.xg-mini-logo { display: none; height: 34px; width: auto; }
.xg-back { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(231, 189, 99, .28); color: #d9dfe9; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.xg-back:hover { color: var(--xg-gold-1); border-color: var(--xg-gold-2); background: rgba(231, 189, 99, .08); }

.xg-card { position: relative; width: 100%; max-width: 440px; border-radius: 22px; padding: 1.5px; opacity: 0; transform: translateY(26px) scale(.98); animation: xgCard .9s cubic-bezier(.2, .7, .2, 1) 1.45s forwards; }
.xg-no-door .xg-card { animation-delay: .1s; }
@keyframes xgCard { to { opacity: 1; transform: none; } }
.xg-card-ring { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.xg-card-ring::before { content: ''; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0deg, rgba(231, 189, 99, .0) 40deg, var(--xg-gold-2) 90deg, var(--xg-gold-1) 110deg, transparent 160deg, transparent 220deg, rgba(231, 189, 99, .55) 280deg, transparent 330deg); animation: xgSpin 6s linear infinite; }
.xg-card-ring::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(231, 189, 99, .18); }
@keyframes xgSpin { to { transform: rotate(360deg); } }
.xg-card-inner { position: relative; border-radius: 21px; padding: 38px 36px 32px; background: linear-gradient(160deg, rgba(20, 32, 56, .92), rgba(8, 14, 28, .96)); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05); }

/* Filament içerikleri */
.xg-card .fi-simple-page { max-width: none; }
.xg-card .fi-logo { display: none !important; }
.xg-card .fi-simple-header { align-items: flex-start; text-align: left; margin-bottom: 4px; }
.xg-card .fi-simple-header-heading { font-size: 28px !important; font-weight: 800 !important; letter-spacing: -.01em; color: #fff !important; text-align: left; }
.xg-card .fi-simple-header-subheading { text-align: left; color: #9aa6ba !important; margin-top: 6px; }
.xg-card .fi-fo-field-wrp-label span { color: #c7cfdc !important; font-weight: 600; }
.xg-card .fi-input-wrp { position: relative; background: rgba(4, 9, 19, .7) !important; border-radius: 12px !important; box-shadow: none !important; outline: 1px solid rgba(255, 255, 255, .08); transition: outline-color .25s, background .25s; overflow: hidden; }
.xg-card .fi-input-wrp::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--xg-gold-3), var(--xg-gold-1)); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.xg-card .fi-input-wrp:focus-within { outline-color: rgba(231, 189, 99, .45); background: rgba(6, 12, 26, .9) !important; }
.xg-card .fi-input-wrp:focus-within::after { transform: scaleX(1); }
.xg-card .fi-input { color: #fff !important; padding-top: .7rem !important; padding-bottom: .7rem !important; }
.xg-card .fi-checkbox-input { border-color: rgba(231, 189, 99, .45) !important; }
.xg-card a.fi-link, .xg-card .fi-link { color: var(--xg-gold-2) !important; }
.xg-card .fi-form-actions .fi-btn, .xg-card button[type="submit"].fi-btn { position: relative; overflow: hidden; height: 50px; border-radius: 999px !important; background: linear-gradient(100deg, var(--xg-gold-1), var(--xg-gold-2) 45%, var(--xg-gold-3)) !important; color: #1a1205 !important; font-weight: 800 !important; font-size: 15px !important; letter-spacing: .02em; box-shadow: 0 14px 34px rgba(231, 189, 99, .28) !important; transition: transform .2s, box-shadow .2s; }
.xg-card .fi-form-actions .fi-btn::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-20deg); animation: xgShine 3.8s ease-in-out infinite 2.4s; }
@keyframes xgShine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.xg-card .fi-form-actions .fi-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(231, 189, 99, .4) !important; }
.xg-card .fi-form-actions .fi-btn .fi-btn-label, .xg-card .fi-form-actions .fi-btn svg { color: #1a1205 !important; }
.xg-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); animation: xgRipple .7s ease-out forwards; pointer-events: none; }
@keyframes xgRipple { to { transform: scale(4); opacity: 0; } }

/* Yükleniyor: logo halkaya dönüşür */
.xg-loader { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; border-radius: inherit; background: rgba(6, 11, 22, .72); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.xg-loader::before { content: ''; position: absolute; width: 86px; height: 86px; border-radius: 50%; border: 2px solid rgba(231, 189, 99, .15); border-top-color: var(--xg-gold-2); border-right-color: var(--xg-gold-1); animation: xgSpin .9s linear infinite; }
.xg-loader img { width: 38px; height: 38px; object-fit: contain; animation: xgBreath 1.4s ease-in-out infinite; }
.xg-card.is-busy .xg-loader { opacity: 1; }
.xg-card.is-error { opacity: 1; animation: xgShake .55s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes xgShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-9px); } 40%, 60% { transform: translateX(9px); } }
.xg-card.is-leaving { transition: transform .6s cubic-bezier(.7, 0, .3, 1), opacity .6s; transform: translateY(-40px) scale(.96); opacity: 0; }

.xg-foot { margin: 22px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6f7b90; }

/* --- Mobil --- */
@media (max-width: 960px) {
    .xg { grid-template-columns: 1fr; }
    .xg-stage { display: none; }
    .xg-side { min-height: 100dvh; padding-top: 96px; background: radial-gradient(90% 50% at 50% 0%, rgba(231, 189, 99, .14), transparent 70%), radial-gradient(120% 80% at 50% 0%, #0f1f3c, var(--xg-bg) 70%); }
    .xg-side-top { justify-content: space-between; }
    .xg-mini-logo { display: block; }
    .xg-card-inner { padding: 30px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .xg-door { display: none; }
    .xg *, .xg *::before, .xg *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
