/**
 * Páginas Auth — alinhadas ao tema dourado do site/Painel (variáveis :root).
 */
.auth-body {
    background: var(--dark, #0d0d0f);
}

.auth-body .auth-main {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.auth-body .auth-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-body .auth-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--painel-menu-pill-border, rgba(255, 255, 255, 0.14));
    background: var(--painel-menu-pill-bg, rgba(0, 0, 0, 0.25));
    color: var(--painel-menu-nav-text, var(--text));
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.auth-body .auth-subnav a:hover {
    color: var(--painel-menu-nav-text-hover, var(--gold-light));
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.08);
}

.auth-body .auth-subnav a.is-active {
    color: var(--painel-menu-nav-active-text, var(--dark));
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
    border-color: rgba(201, 162, 39, 0.65);
}

.auth-body .auth-form-card {
    max-width: 520px;
    margin: 0 auto;
}

.auth-body .auth-form-card .painel-card-title {
    text-align: center;
}

.auth-body .auth-info-box {
    background: rgba(201, 162, 39, 0.08);
    border-left: 3px solid var(--gold);
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    border-radius: 0 6px 6px 0;
}

.auth-body .auth-info-box strong {
    color: var(--gold-light);
}

/* Mensagens (compatível com jQuery que busca .mensagem) */
.auth-body .mensagem {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    text-align: center;
    font-weight: 500;
}

.auth-body .mensagem.sucesso {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.45);
    color: #a5d6a7;
}

.auth-body .mensagem.erro {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ef9a9a;
}

.auth-body .error-message-inline {
    display: none;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 6px;
    color: #ef9a9a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-body .error-message-inline.show {
    display: block;
}

/* Overlay de progresso */
.auth-body .progress-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.auth-body .progress-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--dark-card, #16161a);
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-body .progress-title {
    color: var(--gold-light);
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Cinzel', serif;
}

.auth-body .progress-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-body .progress-step {
    display: flex;
    align-items: center;
    padding: 0.85rem;
    margin-bottom: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.auth-body .progress-step.active {
    border-left-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.auth-body .progress-step.completed {
    border-left-color: #4caf50;
    background: rgba(76, 175, 80, 0.08);
}

.auth-body .progress-step.error {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.08);
}

.auth-body .progress-step .step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 14px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.auth-body .progress-step.active .step-icon {
    background: var(--gold);
    color: var(--dark);
}

.auth-body .progress-step.completed .step-icon {
    background: #4caf50;
    color: #fff;
}

.auth-body .progress-step.error .step-icon {
    background: #f44336;
    color: #fff;
}

.auth-body .step-text {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-body .progress-step.active .step-text {
    color: var(--text);
    font-weight: 600;
}

.auth-body .step-spinner {
    margin-left: auto;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: auth-spin 1s linear infinite;
    display: none;
}

.auth-body .progress-step.active .step-spinner {
    display: block;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-body .progress-message {
    margin-top: 1rem;
    padding: 0.85rem;
    background: rgba(201, 162, 39, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    display: none;
}

.auth-body .progress-message.show {
    display: block;
}

.auth-body .auth-back-link {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-body .auth-back-link:hover {
    color: var(--gold-light);
}

.auth-body .auth-logo-inline {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-body .auth-logo-inline img {
    max-width: 200px;
    height: auto;
}
