/* ═══════════════════════════════════════════════════════════════════
   trocar_senha.css — Página de troca de senha + recuperar_senha.css
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f7f3;
    color: #1a1a1a;
    min-height: 100vh;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ts-wrap {
    width: 100%;
    max-width: 460px;
}
.ts-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8ebe5;
}

.ts-cabec {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.ts-icone {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 6px;
}
.ts-cabec h1 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #0d4d1f;
    margin: 0 0 6px;
}
.ts-usuario {
    color: #666;
    font-size: 0.85rem;
}
.ts-login { color: #999; }

.ts-aviso {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.ts-aviso-obrigatorio {
    background: #fef3c7;
    color: #854d0e;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
}

.ts-msg {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 500;
}
.ts-msg-sucesso {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.ts-msg-erro {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.ts-campo {
    margin-bottom: 16px;
}
.ts-campo label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}
.ts-campo label small {
    font-weight: 400;
    color: #999;
    font-size: 0.78rem;
    margin-left: 4px;
}
.ts-campo input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s;
}
.ts-campo input:focus {
    border-color: #0d4d1f;
    outline: none;
}

.ts-forca {
    font-size: 0.75rem;
    margin-top: 4px;
    min-height: 14px;
}
.ts-forca.forca-fraca { color: #c0392b; }
.ts-forca.forca-media { color: #f59e0b; }
.ts-forca.forca-boa   { color: #166534; }

.ts-validacao {
    font-size: 0.78rem;
    margin-top: 4px;
    min-height: 14px;
}
.ts-validacao.ok   { color: #166534; }
.ts-validacao.erro { color: #c0392b; }

.ts-botoes {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}
.ts-btn {
    padding: 9px 18px;
    border: none;
    border-radius: 7px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.15s, transform 0.05s;
}
.ts-btn:hover { opacity: 0.9; }
.ts-btn:active { transform: scale(0.98); }
.ts-btn-salvar {
    background: #0d4d1f;
    color: #fff;
}
.ts-btn-cancel {
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}
.ts-btn-cancel:hover { background: #f5f5f5; }

/* Página esqueci_senha (compartilha CSS) */
.es-icone { color: #856404; }
.es-passos {
    list-style: none;
    padding: 0;
    margin: 0;
}
.es-passos li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
}
.es-passos li:last-child { border-bottom: none; }
.es-passos li::before {
    content: counter(passo);
    counter-increment: passo;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #0d4d1f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}
.es-passos { counter-reset: passo; }