﻿:root {
    --ink: #1a1410;
    --cream: #f5f0e8;
    --gold: #c9a84c;
    --gold-dim: #a8884040;
    --crimson: #8b1a1a;
    --curtain: #0f0f0f;
    --spotlight: rgba(201,168,76,0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--curtain);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    color: var(--cream);
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* ── Curtain texture background ── */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: repeating-linear-gradient( 90deg, transparent 0px, transparent 28px, rgba(0,0,0,0.18) 28px, rgba(0,0,0,0.18) 30px ), linear-gradient(180deg, #1e1e1e 0%, #111111 40%, #080808 100%);
        z-index: 0;
    }

    /* ── Spotlight from above ── */
    body::after {
        content: '';
        position: fixed;
        top: -120px;
        left: 50%;
        transform: translateX(-50%);
        width: 700px;
        height: 700px;
        background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.22) 0%, transparent 70%);
        pointer-events: none;
        z-index: 1;
    }

.stage-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
    padding: 1.5rem;
    animation: riseIn 0.85s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Card ── */
.login-card {
    background: linear-gradient(160deg, #1a1a1a 0%, #111111 100%);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgba(201,168,76,0.07), 0 24px 64px rgba(0,0,0,0.7), inset 0 1px 0 rgba(201,168,76,0.15);
    padding: 3rem 2.75rem 2.5rem;
}

/* ── Masks emblem ── */
.masks {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.6rem;
}

.mask {
    width: 36px;
    height: 36px;
    position: relative;
}

    .mask svg {
        width: 100%;
        height: 100%;
        filter: drop-shadow(0 0 6px rgba(201,168,76,0.4));
    }

/* ── Heading ── */
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    color: var(--gold);
    margin: 0 0 0.2rem;
    text-shadow: 0 2px 18px rgba(201,168,76,0.25);
}

.brand-sub {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.45);
    margin-bottom: 1.2rem;
}

/* ── Divider ── */
.gold-rule {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.35;
    margin-bottom: 1.2rem;
}

/* ── Labels ── */
.form-label {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.55);
    margin-bottom: 0.45rem;
    font-weight: 400;
}

/* ── Inputs ── */
.form-control {
    background: rgba(0,0,0,0.35) !important;
    border: 1px solid rgba(201,168,76,0.18) !important;
    border-radius: 5px !important;
    font-family: 'Jost', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    caret-color: var(--gold);
}

    .form-control::placeholder {
        color: rgba(245,240,232,0.28) !important;
    }

    .form-control:focus {
        border-color: rgba(201,168,76,0.55) !important;
        box-shadow: 0 0 0 3px rgba(201,168,76,0.1) !important;
        outline: none;
        background: rgba(0,0,0,0.45) !important;
    }

/* ── Password toggle ── */
.input-group .form-control {
    border-right: none !important;
}

.input-group-text {
    background: rgba(0,0,0,0.35) !important;
    border: 1px solid rgba(201,168,76,0.18) !important;
    border-left: none !important;
    border-radius: 0 5px 5px 0 !important;
    cursor: pointer;
    color: rgba(245,240,232,0.4);
    transition: color 0.2s;
    padding: 0 0.85rem;
}

    .input-group-text:hover {
        color: var(--gold);
    }

.input-group:focus-within .input-group-text {
    border-color: rgba(201,168,76,0.55) !important;
}

/* ── Checkbox ── */
.form-check-input {
    background-color: transparent !important;
    border: 1px solid rgba(201,168,76,0.3) !important;
    width: 14px;
    height: 14px;
    border-radius: 3px !important;
}

    .form-check-input:checked {
        background-color: var(--gold) !important;
        border-color: var(--gold) !important;
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 3px rgba(201,168,76,0.15) !important;
    }

.form-check-label {
    font-size: 0.8rem;
    color: rgba(245,240,232,0.5);
    cursor: pointer;
}

/* ── Forgot link ── */
.forgot-link {
    font-size: 0.78rem;
    color: rgba(201,168,76,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: var(--gold);
    }

/* ── Submit button ── */
.btn-stage {
    width: 100%;
    background: linear-gradient(135deg, #b8922a 0%, #d4a93a 50%, #b8922a 100%);
    border: none;
    border-radius: 5px;
    color: #1a0e0e;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.8rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(201,168,76,0.2);
    margin-top: 0.5rem;
}

    .btn-stage:hover {
        opacity: 0.92;
        transform: translateY(-1px);
        box-shadow: 0 6px 28px rgba(201,168,76,0.35);
    }

    .btn-stage:active {
        transform: translateY(0);
    }

/* ── Footer ── */
.card-footer-text {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(245,240,232,0.3);
    margin-top: 1.6rem;
    letter-spacing: 0.04em;
}

    .card-footer-text a {
        color: rgba(201,168,76,0.7);
        text-decoration: none;
        transition: color 0.2s;
    }

        .card-footer-text a:hover {
            color: var(--gold);
        }

/* ── Decorative corner flourishes ── */
.corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(201,168,76,0.3);
    border-style: solid;
}

.corner-tl {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.corner-tr {
    top: -1px;
    right: -1px;
    border-width: 2px 2px 0 0;
}

.corner-bl {
    bottom: -1px;
    left: -1px;
    border-width: 0 0 2px 2px;
}

.corner-br {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

/* ── Stage boards footer ── */
.stage-boards {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,240,232,0.18);
}

/* Alert */
.alert-stage {
    background: rgba(139,26,26,0.3);
    border: 1px solid rgba(139,26,26,0.5);
    color: #e8a0a0;
    border-radius: 3px;
    font-size: 0.8rem;
    padding: 0.55rem 0.9rem;
    display: none;
}
