/**
 * Portal RH — Recuperação e redefinição de senha
 * CSS compartilhado extraído de esqueci_senha.php e redefinir_senha.php.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --navy: #1e2a4a;
    --navy2: #1e2a4acc;
    --wave: #8a9ab0;
    --border: #d1d5e0;
    --text: #1e2a4a;
    --muted: #8a9ab0;
    --red: #c0392b;
    --green: #1a6a3a;
    --spring: .35s cubic-bezier(.34,1.56,.64,1);
}

body.recovery-page {
    font-family: 'Open Sans', sans-serif;
    background: #f2f4f8;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card igual ao login */
.card {
    display: flex; flex-direction: row;
    width: 100%; max-width: 680px;
    min-height: 420px;
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 12px 48px rgba(30,42,74,.18);
    animation: card-in .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes card-in {
    from { opacity: 0; transform: scale(.94) translateY(20px); }
    to   { opacity: 1; transform: none; }
}

.card-left {
    width: 40%; background: var(--navy);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 40px 28px; position: relative; flex-shrink: 0;
}
.card-left::after {
    content: ''; position: absolute; right: -28px; top: 0; bottom: 0; width: 56px;
    background: var(--navy); clip-path: ellipse(56px 55% at 0% 50%); z-index: 1;
}

.logo-title { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 24px; color: #fff; }
.logo-sub   { font-size: 12px; color: var(--wave); margin-top: 4px; }
.logo-div   { width: 36px; height: 2px; background: var(--wave); margin: 14px auto; border-radius: 2px; opacity: .5; }

/* Ícone de cadeado animado */
.lock-wrap {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    animation: lock-pulse 2s ease-in-out infinite;
}
@keyframes lock-pulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.15); }
    50%      { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}
.lock-wrap svg { width: 28px; height: 28px; color: rgba(255,255,255,.8); }

.tagline { font-size: 12px; color: var(--wave); text-align: center; line-height: 1.7; }

/* Lado direito */
.card-right {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; padding: 40px 36px;
    position: relative; z-index: 2;
}

.form-title    { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 20px; color: var(--text); margin-bottom: 4px; }
.form-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

/* Sucesso */
.success-wrap {
    text-align: center; padding: 8px 0;
    animation: card-in .4s cubic-bezier(.34,1.56,.64,1);
}
.success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #e3f0ea; display: flex; align-items: center;
    justify-content: center; margin: 0 auto 16px;
    animation: success-pop var(--spring) both;
}
@keyframes success-pop { from { opacity:0; transform: scale(.4); } to { opacity:1; transform: scale(1); } }
.success-icon svg { width: 28px; height: 28px; color: #1a6a3a; }
.success-title { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.success-sub   { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 10px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.field input {
    width: 100%; height: 44px; border: 1.5px solid var(--border); border-radius: 10px;
    padding: 0 14px; font-size: 14px; font-family: 'Open Sans', sans-serif;
    color: var(--text); background: #f7f9fc;
    transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(30,42,74,.08); }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 5px; }

.alert-error {
    background: #fdecea; border: 1px solid #f5c6c2; color: var(--red);
    border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
    animation: slide-in .3s ease;
}
@keyframes slide-in { from { opacity:0; transform: translateX(-10px); } to { opacity:1; transform: none; } }

.btn-enviar {
    width: 100%; height: 46px; background: var(--navy); color: #fff;
    border: none; border-radius: 10px; font-family: 'Nunito', sans-serif;
    font-weight: 800; font-size: 15px; cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    position: relative; overflow: hidden;
}
.btn-enviar::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    background-size: 200%; opacity: 0; transition: opacity .2s;
}
.btn-enviar:hover { background: var(--navy2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,42,74,.28); }
.btn-enviar:hover::after { opacity: 1; animation: shine .6s ease; }
@keyframes shine { from { background-position: -200% center; } to { background-position: 200% center; } }

.link-voltar { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); text-decoration: none; }
.link-voltar:hover { color: var(--navy); }

.card-footer { position: absolute; bottom: 14px; right: 20px; font-size: 10px; color: var(--muted); }

/* Responsivo */
@media (max-width: 580px) {
    body { padding: 12px; }
    .card { flex-direction: column; min-height: unset; }
    .card-left { width: 100%; padding: 28px 24px 36px; min-height: unset; }
    .card-left::after { display: none; }
    .card-right { padding: 28px 24px 36px; }
    .card-footer { position: static; text-align: center; margin-top: 12px; }
}

/* Inline cleanup v2 — esqueci_senha.php/redefinir_senha.php */
.recovery-logo-img {
    max-width: 110px;
    max-height: 55px;
    object-fit: contain;
    margin-bottom: 12px;
}

.recovery-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
