/* ========================================================
   AUTH PAGES — cadastro, login, escolher-slug, email-enviado
   ======================================================== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cor-bg, #f8fafc);
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius-lg, 8px);
    border: 1px solid var(--cor-border, #e9edf2);
    padding: 2.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-logo-img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.5rem;
}

.auth-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cor-texto, #0f172a);
    margin: 0;
}

.auth-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cor-texto, #0f172a);
    margin: 0 0 1.25rem;
    text-align: center;
}

.auth-text {
    color: var(--cor-texto-secundario, #475569);
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 0.75rem;
}

.auth-text--muted {
    color: #94a3b8;
    font-size: 0.8rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form .btn {
    margin-top: 0.5rem;
}

.auth-footer-text {
    text-align: center;
    font-size: 0.82rem;
    color: var(--cor-texto-secundario, #475569);
    margin: 1.25rem 0 0;
}

.auth-footer-text a {
    color: var(--cor-primaria, #0ea5e9);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Messages */
.auth-messages {
    margin-bottom: 1rem;
}

.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md, 5px);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.auth-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.auth-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Info page (email-enviado) */
.auth-info {
    text-align: center;
    padding: 1rem 0;
}

.auth-info__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Slug preview input */
.slug-preview {
    display: flex;
    align-items: center;
    border: 1px solid var(--cor-border, #e9edf2);
    border-radius: var(--radius-md, 5px);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
}

.slug-preview:focus-within {
    border-color: var(--cor-primaria, #0ea5e9);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.slug-preview__prefix {
    padding: 0 0 0 0.75rem;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}

.slug-preview__input {
    border: none !important;
    box-shadow: none !important;
    padding-left: 0.25rem;
}

.slug-preview__input:focus {
    box-shadow: none !important;
}

/* Form helpers */
.form-error {
    display: block;
    color: #dc2626;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    color: #94a3b8;
    font-size: 0.76rem;
    margin-top: 0.25rem;
}

.form-group--error .form-input {
    border-color: #dc2626;
}
