/* Shared gold-on-black styles for the IFS login and console pages. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #000;
    --panel: #0a0805;
    --line: #bea77330;
    --line-strong: #bea77366;
    --text: #e9dcb8;
    --muted: #a8977099;
    --gold-hi: #fff3cf;
    --gold-lt: #ecd497;
    --gold: #bea773;
    --gold-dk: #8a6a2f;
    --danger: #e08a6a;
    --gold-sheen: linear-gradient(100deg,
        #8a6a2f 0%, #bea773 18%, #f3dfa6 30%, #fff6d8 36%, #e2c584 44%,
        #bea773 58%, #8a6a2f 72%, #bea773 86%, #f0d99c 100%);
    color-scheme: dark;
}

html, body { background: var(--bg); color: var(--text); min-height: 100%; }
body { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; }

body::before {
    content: '';
    position: fixed;
    inset: -10%;
    background:
        radial-gradient(ellipse 42% 38% at 50% 40%, #bea7731f, transparent 70%),
        radial-gradient(ellipse 70% 60% at 50% 50%, #8a6a2f12, transparent 75%);
    pointer-events: none;
    z-index: 0;
    animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { opacity: .55; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.06); }
}

.gold-text {
    background: var(--gold-sheen);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 6s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.cinzel { font-family: 'Cinzel', 'Trajan Pro', Georgia, serif; }
.mono   { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.btn {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: .06em;
    color: #120d04;
    background: var(--gold-sheen);
    background-size: 250% 100%;
    border: 0;
    padding: 14px 26px;
    cursor: pointer;
    animation: sheen 6s ease-in-out infinite alternate, btn-glow 5s ease-in-out infinite;
    transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; animation: none; }
@keyframes btn-glow {
    0%, 100% { box-shadow: 0 0 0 #bea77300; }
    50%      { box-shadow: 0 0 28px #bea77355; }
}

.btn-ghost {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    letter-spacing: .04em;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--line-strong);
    padding: 9px 16px;
    cursor: pointer;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.btn-ghost:hover { color: var(--gold-hi); border-color: var(--gold); box-shadow: 0 0 16px #bea77333; }

input[type=text], input[type=password] {
    width: 100%;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 19px;
    color: var(--gold-hi);
    background: #bea7730a;
    border: 1px solid var(--line-strong);
    padding: 12px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
input:focus { border-color: var(--gold); box-shadow: 0 0 18px #bea77333; }

:focus-visible { outline: 1px solid var(--gold-lt); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
