
/* =========================================================
   AVALIA+ — RECUPERAR SENHA
   ========================================================= */

:root {
    --auth-primary: #2563eb;
    --auth-primary-hover: #1d4ed8;
    --auth-primary-soft: #eff6ff;

    --auth-text: #0f172a;
    --auth-text-soft: #64748b;

    --auth-border: #e2e8f0;
    --auth-border-strong: #cbd5e1;

    --auth-card: #ffffff;

    --auth-shadow:
        0 12px 32px rgba(15, 23, 42, 0.08);

    --auth-transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* =========================================================
   RESET E ESTRUTURA
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;

    display: flex;
    flex-direction: column;

    font-family: "Inter", sans-serif;
    color: var(--auth-text);

    background: linear-gradient(
        135deg,
        #dbeafe 0%,
        #eff6ff 55%,
        #f8fafc 100%
    );

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

/* =========================================================
   ÁREA PRINCIPAL
   ========================================================= */

.auth-wrapper {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 32px 20px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 30px 32px 25px;

    background: var(--auth-card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;

    box-shadow: var(--auth-shadow);

    animation: auth-entrada 0.3s ease both;
}

@keyframes auth-entrada {
    from {
        opacity: 0        ;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   LOGO
   ========================================================= */

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;
    text-align: center;
}

.logo-container img {
    display: block;

    width: auto;
    max-width: 165px;
    max-height: 54px;

    object-fit: contain;
}

/* =========================================================
   CABEÇALHO
   ========================================================= */

.page-header {
    margin-bottom: 23px;
    text-align: center;
}

.page-header h1 {
    margin: 0;

    color: var(--auth-text);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.page-header p {
    max-width: 330px;
    margin: 9px auto 0;

    color: var(--auth-text-soft);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.75;
}

.page-header p strong {
    color: #334155;
    font-weight: 700;
}

/* =========================================================
   MENSAGENS
   ========================================================= */

.message-wrapper {
    width: 100%;
    margin-bottom: 17px;
}

.message-wrapper:empty {
    display: none;
}

.message-wrapper > * {
    width: 100%;
    margin: 0;
}

/* Sucesso */

.message-wrapper :is(
    .alert-success,
    .message-success,
    .mensagem-sucesso,
    .mensagem.sucesso,
    [class*="success" i],
    [class*="sucesso" i]
) {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Erro */

.message-wrapper :is(
    .alert-error,
    .alert-danger,
    .message-error,
    .mensagem-erro,
    .mensagem.erro,
    [class*="error" i],
    [class*="erro" i],
    [class*="danger" i]
) {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

/* Aviso */

.message-wrapper :is(
    .alert-warning,
    .message-warning,
    .mensagem-aviso,
    [class*="warning" i],
    [class*="aviso" i]
) {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

/* Informação */

.message-wrapper :is(
    .alert-info,
    .message-info,
    .mensagem-info,
    [class*="info" i]
) {
    color: #1e40af;
    background: #eff6ff;
    border-color: #bfdbfe;
}

/* =========================================================
   FORMULÁRIO
   ========================================================= */

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;

    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 13px;

    width: 17px;
    height: 17px;

    color: #94a3b8;
    pointer-events: none;

    transform: translateY(-50%);
    transition: color 0.18s ease;
}

.input-group input {
    display: block;
    width: 100%;
    height: 44px;

    padding: 0 13px 0 40px;

    color: var(--auth-text);
    background: #ffffff;

    border: 1px solid var(--auth-border-strong);
    border-radius: 9px;

    font-size: 13px;
    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.input-group input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.input-group input:hover {
    border-color: #94a3b8;
}

.input-group input:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.input-group:focus-within svg {
    color: var(--auth-primary);
}

/* =========================================================
   RODAPÉ
   ========================================================= */

body > footer,
body > .site-footer,
body > div:has(> footer),
body > div:has(> .site-footer) {
    flex-shrink: 0;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 600px) {
    .auth-wrapper {
        padding: 22px 15px 20px;
    }

    .auth-card {
        max-width: 390px;
        padding: 26px 23px 21px;
        border-radius: 16px;
    }

    .logo-container {
        margin-bottom: 22px;
    }

    .logo-container img {
        max-width: 150px;
        max-height: 49px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 23px;
    }

    .page-header p {
        font-size: 12px;
        line-height: 1.7;
    }
}

@media (max-width: 360px) {
    .auth-wrapper {
        padding-right: 11px;
        padding-left: 11px;
    }

    .auth-card {
        padding: 23px 17px 19px;
    }

    .page-header h1 {
        font-size: 21px;
    }

    .input-group input {
        height: 42px;
    }
}

/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
