/* ── Authentication Page — global (component-level CSS) ── */

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
    text-align: center;
}

.auth-message {
    font-size: 1.2rem;
    margin: 1rem 0;
}

.auth-status {
    width: min(100%, 32rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(48, 63, 159, 0.08);
    color: var(--color-primary-900);
}

.auth-status-error {
    flex-direction: column;
    background: rgba(244, 67, 54, 0.08);
    color: var(--color-error);
}

.auth-status-link {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.auth-status-link:hover {
    opacity: 0.85;
}

.auth-status-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.auth-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem auto;
}

.auth-error h2 {
    color: var(--color-error);
    margin-bottom: 1rem;
}

body.dark .auth-error {
    background: rgba(255, 100, 100, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

body.dark .auth-status {
    background: rgba(197, 202, 233, 0.12);
    color: var(--color-primary-50);
}

body.dark .auth-status-error {
    background: rgba(255, 107, 107, 0.12);
    color: var(--color-error-light);
}

body.dark .auth-error h2 {
    color: var(--color-error-light);
}

.btn-back {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--color-primary-700);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: var(--color-primary-900);
}

body.dark .btn-back {
    background: var(--color-primary-500);
}

body.dark .btn-back:hover {
    background: var(--color-primary-700);
}
