:root {
    color-scheme: dark;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #08111f;
    color: #f7f9fc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 20% 15%, rgba(61, 129, 255, .24), transparent 36rem),
        radial-gradient(circle at 85% 80%, rgba(85, 224, 192, .13), transparent 32rem),
        #08111f;
}

.auth-card {
    width: min(100%, 28rem);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.5rem;
    background: rgba(13, 27, 48, .94);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
}

.auth-mark {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, #5d93ff, #5be0bd);
    color: #07101d;
    font-size: 1.75rem;
    font-weight: 800;
}

h1 { margin: 0 0 .5rem; font-size: clamp(1.75rem, 6vw, 2.35rem); }
p { color: #b8c6dc; line-height: 1.55; }

.auth-actions { display: grid; gap: .8rem; margin-top: 1.5rem; }

button, .auth-button {
    width: 100%;
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    border: 1px solid transparent;
    border-radius: .85rem;
    padding: .8rem 1rem;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.auth-button-primary { background: #f8fafc; color: #09111d; }
.auth-button-secondary { background: transparent; color: #f7f9fc; border-color: rgba(255,255,255,.25); }
.auth-button-link { background: transparent; color: #9fc0ff; border-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }

.auth-status {
    min-height: 1.5rem;
    margin: 1rem 0 0;
    color: #b8c6dc;
}

.auth-status.error { color: #ffb4b4; }
.auth-status.success { color: #7de3c4; }
.auth-small { font-size: .875rem; }

label { display: grid; gap: .45rem; color: #dce5f3; font-weight: 650; }
select, input {
    width: 100%;
    min-height: 3rem;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .75rem;
    background: #091526;
    color: #f7f9fc;
    font: inherit;
}

.invite-result { margin-top: 1.25rem; }
.invite-result input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.hidden { display: none; }

.credential-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.credential-row button { width: auto; min-height: 2.5rem; color: #ffb4b4; }
.credential-row small { display: block; margin-top: .25rem; color: #98aac4; }
