.page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px 16px
}

.powered {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: .9rem;
    letter-spacing: .3px;
    opacity: .9
}

.powered strong {
    color: #25d0fa;
    font-weight: 600
}

.card {
    width: min(92vw, 460px);
    background: #12121acc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: saturate(120%) blur(6px)
}

.card h1 {
    margin: 0 0 6px;
    font-size: 1.2rem
}

.subtitle {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: .9rem
}

.segmented {
    margin: 8px 0 18px
}

.segmented-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #0e1420;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden
}

.segment {
    appearance: none;
    background: transparent;
    color: var(--muted);
    border: 0;
    padding: 8px 8px;
    font-size: .9rem;
    cursor: pointer;
    transition: color .2s ease
}

.segment.is-active {
    color: var(--text)
}

.segment:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
    border-radius: 10px
}

.segment-indicator {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    background: linear-gradient(180deg, rgba(96, 165, 250, .1), rgba(56, 189, 248, .08));
    border-right: 1px solid rgba(255, 255, 255, .04);
    border-left: 1px solid rgba(255, 255, 255, .04);
    pointer-events: none;
    z-index: 0;
    transition: transform .25s ease
}

.segmented-track .segment {
    position: relative;
    z-index: 1
}

.panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel[hidden] {
    display: none;
}

.fingerprint-container {
    text-align: center;
    margin-bottom: 8px;
}

.fingerprint-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(36, 181, 217, 0.39), rgba(31, 90, 108, 0.09));
    border: 2px solid rgb(34, 143, 171);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
            box-shadow: 0 0 0 0 rgba(36, 181, 217, 0.3);
        }
    50% {
        box-shadow: 0 0 0 12px rgba(36, 181, 217, 0);
    }
}

.fingerprint-icon svg {
    color: #25d0fa;
}

.fingerprint-container p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

label {
    font-size: .95rem;
    color: var(--muted)
}

input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0c111a;
    border: 1px solid #141b28;
    color: var(--text);
    font-size: .95rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease
}

input::placeholder {
    color: #6b7280
}

input:focus {
    border-color: rgba(34, 211, 238, .6);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .15)
}

.row {
    display: flex;
    gap: 12px;
    align-items: center
}

.row.between {
    justify-content: space-between
}

.link {
    color: #fff;
    text-decoration: none;
    font-size: .95rem
}

.link:hover {
    text-decoration: underline
}

.btn {
    appearance: none;
    border: 1px solid var(--border);
    background: #0e1420;
    color: var(--text);
    padding: 10px 12px;
    font-size: .95rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .04s ease, background .2s ease, border-color .2s ease
}

.btn:hover {
    background: #121a28;
    border-color: #1f2937
}

.btn:active {
    transform: translateY(1px)
}

.btn.primary {
    background: linear-gradient(180deg, #17179c8f, #17179cc2);
    border-color: #17179cc2;
}

.btn.primary:hover {
    background: linear-gradient(180deg, #17179c8f, #17179cc2);
}

.btn.ghost {
    background: transparent;
}

#passkey-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

#passkey-form label {
    font-size: .95rem;
    color: var(--muted);
    margin-bottom: 4px;
}

#passkey-form .btn.primary {
    margin-top: 8px;
}

.back-btn {
    margin-top: 12px;
}

.btn.ghost {
    background: transparent
}

.oauth-providers {
    margin-bottom: 1.25rem;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.oauth-btn.google {
    background: #fff;
    border-color: #dadce0;
    color: #3c4043;
}

.oauth-btn.google:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
}

.oauth-btn.oauth {
    background: var(--card);
    border-color: var(--border);
    color: var(--text);
}

.oauth-btn.oauth:hover {
    background: #1a1f2e;
    border-color: var(--muted);
}

.oauth-btn.discord {
    background: #5865F2;
    border-color: #4752C4;
    color: #fff;
}

.oauth-btn.discord:hover {
    background: #4752C4;
    border-color: #3C45A5;
}

.oauth-btn svg {
    flex-shrink: 0;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    padding: 0 0.75rem;
}

@media (max-width:420px) {
    .card {
        padding: 18px
    }

    .powered {
        font-size: .8rem
    }
}
