/* Auth modal shares the product shell tokens. */

#auth-modal {
    background: rgba(13, 17, 23, 0.54) !important;
}

.auth-dialog {
    width: min(100%, 25rem);
    padding: 0.82rem;
}

.auth-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.72rem;
    margin-bottom: 0.72rem;
}

.auth-head h2 {
    margin: 0;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 760;
}

.auth-head p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.24rem;
    margin-bottom: 0.72rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 0.24rem;
}

.auth-mode-tab {
    min-height: 2.15rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.auth-mode-active {
    background: var(--surface);
    color: var(--text);
}

.auth-form {
    display: grid;
    gap: 0.65rem;
}

.auth-form label {
    display: grid;
    gap: 0.32rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

#auth-message:not(.hidden) {
    margin-bottom: 0.65rem;
    border: 1px solid var(--red);
    border-radius: var(--radius-sm);
    background: var(--red-soft);
    color: var(--red);
    padding: 0.58rem;
    font-size: 0.86rem;
    line-height: 1.34;
}

html[data-theme="dark"] #auth-modal {
    background: rgba(1, 4, 9, 0.72) !important;
}

/* Density layer. */
.auth-dialog {
    width: min(100%, 23rem);
    padding: 0.62rem;
}

.auth-head {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.auth-head h2 {
    font-size: 1.02rem;
}

.auth-head p {
    margin-top: 0.12rem;
    font-size: 0.8rem;
}

.auth-tabs {
    margin-bottom: 0.5rem;
}

.auth-mode-tab {
    min-height: 1.9rem;
    font-size: 0.76rem;
}

.auth-form {
    gap: 0.48rem;
}

.auth-form label {
    gap: 0.22rem;
}

#auth-message:not(.hidden) {
    margin-bottom: 0.48rem;
    padding: 0.46rem;
}
