:root {
    --navy: #132238;
    --blue: #3568e8;
    --page: #f2f5fa;
    --border: #e1e6ef;
    --muted: #758096;
}

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(53, 104, 232, .13), transparent 28%),
        radial-gradient(circle at 90% 85%, rgba(30, 144, 104, .09), transparent 24%),
        var(--page);
    color: var(--navy);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.auth-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(19, 34, 56, .12);
    padding: 2rem;
    width: 100%;
}

.login-card { max-width: 430px; }
.setup-card { max-width: 850px; }

.auth-brand {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin-bottom: 2rem;
}

.auth-brand > span {
    align-items: center;
    background: var(--blue);
    border-radius: 10px;
    color: #fff;
    display: flex;
    font-size: 1.1rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.auth-brand strong,
.auth-brand small { display: block; }
.auth-brand strong { font-size: .92rem; }
.auth-brand small { color: var(--muted); font-size: .7rem; margin-top: .15rem; }

.eyebrow {
    color: var(--blue);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: .4rem;
}

.auth-heading,
.setup-heading { margin-bottom: 1.5rem; }
.auth-heading h1,
.setup-heading h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em; }
.auth-heading p:last-child,
.setup-heading p:last-child { color: var(--muted); font-size: .82rem; }

.form-label { font-size: .74rem; font-weight: 750; }
.form-control {
    border-color: #d8deea;
    border-radius: 8px;
    font-size: .84rem;
    min-height: 44px;
}
.form-control:focus { border-color: #7e9cf0; box-shadow: 0 0 0 .2rem rgba(53, 104, 232, .12); }
.form-text { font-size: .67rem; }
.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 750;
    min-height: 45px;
}
.alert { border: 0; border-radius: 8px; font-size: .78rem; }
.auth-foot { color: var(--muted); font-size: .67rem; margin: 1.25rem 0 0; text-align: center; }
.auth-foot i { color: #16875d; }

fieldset {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0 0 1.8rem;
    padding: 1.3rem 0 0;
}

legend {
    align-items: center;
    color: var(--navy);
    display: flex;
    font-size: .84rem;
    font-weight: 800;
    gap: .55rem;
    margin-bottom: 1rem;
}

legend span {
    align-items: center;
    background: #eaf0ff;
    border-radius: 50%;
    color: var(--blue);
    display: inline-flex;
    font-size: .68rem;
    height: 25px;
    justify-content: center;
    width: 25px;
}

code { background: #eef2f8; border-radius: 4px; color: #394a68; padding: .15rem .35rem; }

@media (max-width: 575.98px) {
    .auth-card { padding: 1.35rem; }
}
