.login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 32px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* .login-label is the shared .label (main.css). */

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.form-fields {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.form-group:first-child {
    margin-top: 0;
}

/* Wraps the register-only fields (confirm password, Omnidex ID); collapses
   to nothing in sign-in mode. Its inner .form-group children keep the usual
   16px spacing between them. */
.confirm-group {
    display: flex;
    flex-direction: column;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.confirm-group.expanded {
    margin-top: 16px;
    opacity: 1;
}

label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* The global input / textarea styling lives in components.css. */

.error-msg {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--error);
    background: rgba(200, 110, 110, 0.08);
    border: 1px solid rgba(200, 110, 110, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* Shared .btn .btn--primary (components.css). */
.btn-submit {
    font-size: 0.9rem;
    padding: 11px 20px;
    width: 100%;
}

.form-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.btn-switch {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.btn-switch:hover {
    opacity: 0.75;
}