/* =============================================================
   LOGIN — CSS unificado para todas as telas de autenticação
   ============================================================= */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Fundo gradiente */
.login-bg {
    min-height: 100vh;
    background: var(--login-bg, linear-gradient(135deg, #0d6efd, #6610f2));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Card central */
.login-card {
    width: 100%;
    max-width: 400px;
    border: 0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Logo */
.login-logo {
    width: 150px;
    height: auto;
}

/* Separador com texto */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #adb5bd;
    font-size: 0.75rem;
    margin: 1rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

/* Hint text abaixo de inputs */
.login-hint {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: -0.25rem;
}

/* Input readonly */
.readonly-input {
    background-color: #f1f3f5 !important;
    cursor: not-allowed;
}

/* Labels floating */
.form-floating>label {
    color: #6c757d;
}

/* Rodapé */
.login-footer {
    font-size: 0.75rem;
    color: #adb5bd;
    text-align: center;
    margin-top: 1.5rem;
}

/* ─── PIN inputs (token) ──────────────────────────────────── */
.pin-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem 2rem;
    text-align: center;
}

.pin-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.25rem;
}

.pin-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.pin-inputs .pin {
    width: 2.6rem;
    height: 2.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #1d2939;
    transition: border-color .15s, box-shadow .15s;
}

.pin-inputs .pin:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .2);
    outline: none;
}

.pin-inputs .pin.filled {
    border-color: #0d6efd;
    background: #e9f0ff;
}

/* ─── Email actions ───────────────────────────────────────── */
.email-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-actions .btn-row {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

/* ─── Validação no modal ──────────────────────────────────── */
.validation-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
}

.validation-list li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    color: #6c757d;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.validation-list li:last-child {
    border-bottom: none;
}

/* ─── Step indicator ──────────────────────────────────────── */
.login-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.login-step span {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
    color: #adb5bd;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.login-step small {
    font-size: 0.65rem;
    color: #adb5bd;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.login-step.active span {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .15);
}

.login-step.active small {
    color: #0d6efd;
}

.login-step.done span {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.login-step.done small {
    color: #198754;
}

.login-step-line {
    height: 2px;
    width: 2.5rem;
    background: #dee2e6;
    border-radius: 2px;
    align-self: center;
    margin-bottom: 1.2rem;
    transition: background .2s;
}

.login-step-line.done {
    background: #198754;
}