/* INTRADOC — páginas de autenticação (login, admin, setup) */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top right, #3b82f611, transparent),
                radial-gradient(circle at bottom left, #6366f111, transparent),
                var(--bg-main) !important;
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem 2rem;
    animation: authSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card--wide {
    max-width: 640px;
}

@keyframes authSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.auth-brand-name {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-main);
    line-height: 1;
}

.auth-brand img,
.auth-brand-logo,
.intradoc-logo.auth-brand-logo {
    width: 3.25rem;
    height: 3.25rem;
    max-width: 52px;
    max-height: 52px;
    margin-bottom: 0;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(59, 130, 246, 0.28));
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.auth-section-header {
    padding: 0.75rem 1rem;
    background: var(--primary-soft);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.auth-section-body {
    padding: 1rem;
}

.auth-page .form-label {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.auth-page .input-group-text {
    background: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.auth-page .form-control {
    background: var(--bg-surface) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

.auth-page .form-control::placeholder {
    color: var(--input-placeholder, var(--text-muted));
    opacity: 0.9;
}

.auth-page small.text-muted,
.auth-page .text-muted {
    color: var(--text-muted) !important;
}

.auth-page .input-group:focus-within .input-group-text,
.auth-page .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.auth-page .input-group:focus-within .input-group-text {
    color: var(--primary);
}

.auth-page .btn-auth {
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
}

.auth-page .btn-auth-admin {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.auth-page .btn-auth-admin:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-flash .alert {
    border-radius: 12px;
    font-size: 0.9rem;
}

.auth-badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
}
