/* Auth pages (setup wizard, login) + home — Phase 4C design system.
   All colors come from the semantic variables in theme.css. */

.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    gap: 1rem;
}

.auth__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 26rem;
    box-sizing: border-box;
    box-shadow: var(--shadow-card);
}

.auth__card h1 {
    margin: 0 0 0.25rem;
    font-size: 1.3rem;
}

.auth__customer {
    margin: 0 0 0.25rem;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.auth__sub {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth__field {
    display: block;
    margin-bottom: 1rem;
}

.auth__field > span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.auth__field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.7rem;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-inset);
    color: var(--text-primary);
}

.auth__field input:focus {
    outline: 2px solid var(--focus-ring);
    outline-offset: 1px;
    border-color: var(--focus-ring);
}

.auth__hint {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0.25rem 0 0;
}

.auth__error {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth__notice {
    background: var(--success-bg);
    border: 1px solid var(--success);
    color: var(--success);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.auth__button {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-on-accent);
    background: var(--accent);
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.12s ease;
}

.auth__button:hover {
    background: var(--accent-hover);
}

/* Microsoft sign-in — rendered as an anchor, normalized to the button look but
   visually distinct from the local login button. */
.auth__button--entra {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.auth__button--entra:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--focus-ring);
}

/* Secondary action (e.g. «Send ny kode») — subordinate to the primary button. */
.auth__button--secondary {
    margin-top: 0.6rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.auth__button--secondary:hover {
    background: var(--bg-card);
    border-color: var(--focus-ring);
}

.auth__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--text-faint);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--border);
}

.auth__footer {
    color: var(--text-faint);
    font-size: 0.78rem;
    text-align: center;
    max-width: 26rem;
}

/* Authenticated home */
.home {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.home h1 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.home p {
    color: var(--text-secondary);
}

.home__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.home__link {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: border-color 0.12s ease;
}

.home__link:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.home__link small {
    display: block;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
