/* ==========================================================================
   Telas de acesso (login, recuperar senha, redefinir senha)
   Usado por: index.php, recuperar.php, resetar.php
   ========================================================================== */

:root {
    --auth-brand: #612db5;
    --auth-brand-dark: #4e2391;
    --auth-ink: #111018;
    --auth-text: #1a1523;
    --auth-muted: #6b6679;
    --auth-border: #e6e4ec;
    --auth-bg: #fbfbfd;
}

body.auth-body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Manrope', sans-serif;
    color: var(--auth-text);
    background: linear-gradient(180deg, #f6f5fb 0%, #ffffff 70%);
    display: flex;
    flex-direction: column;
}

/* Fundo no mesmo padrão do hero da landing-page: manchas desfocadas + rede de conexão */
body.auth-body::before,
body.auth-body::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

body.auth-body::before {
    inset: -20% -10% auto -10%;
    height: 85%;
    background:
        radial-gradient(38% 45% at 18% 25%, rgba(97, 45, 181, .55), transparent 70%),
        radial-gradient(32% 40% at 82% 15%, rgba(59, 130, 246, .45), transparent 70%),
        radial-gradient(40% 45% at 55% 55%, rgba(139, 92, 246, .35), transparent 70%);
    filter: blur(60px);
    opacity: .55;
}

body.auth-body::after {
    inset: 0;
    background: url('../img/login-rede.svg') center / cover no-repeat;
    opacity: .5;
}

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

.auth-body * {
    font-family: 'Manrope', sans-serif;
}

.auth-body .ti {
    font-family: 'tabler-icons' !important;
}

/* Cabeçalho e rodapé */
.auth-header,
.auth-main,
.auth-footer {
    position: relative;
    z-index: 1;
}

.auth-header,
.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    font-size: 13px;
    color: var(--auth-muted);
}

.auth-header {
    justify-content: flex-end;
}

.auth-header a,
.auth-footer a {
    color: var(--auth-muted);
    text-decoration: none;
}

.auth-header a:hover,
.auth-footer a:hover {
    color: var(--auth-brand);
}

.auth-ajuda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    background: #fff;
}

.auth-header a.auth-ajuda {
    color: var(--auth-text);
}

.auth-ajuda:hover {
    border-color: var(--auth-brand);
}

.auth-ajuda i {
    color: #16a34a;
    font-size: 16px;
}

/* Área central */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(24, 16, 46, .14);
}

/* Marca: mesmo símbolo da landing-page */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--auth-ink);
}

.auth-logo img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.auth-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-brand);
    background: #f1ebfb;
    padding: 5px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.auth-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--auth-brand);
    box-shadow: 0 0 0 3px rgba(97, 45, 181, .2);
}

.auth-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.8px;
    line-height: 1.2;
    margin: 0 0 6px;
    color: var(--auth-ink);
}

.auth-sub {
    color: var(--auth-muted);
    font-size: 14px;
    margin: 0 0 24px;
}

/* Campos */
.auth-campo {
    position: relative;
    margin-bottom: 16px;
}

.auth-rotulo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.auth-campo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text);
    margin: 0 0 6px;
}

.auth-rotulo a {
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-brand);
    text-decoration: none;
}

.auth-rotulo a:hover {
    color: var(--auth-brand-dark);
    text-decoration: underline;
}

.auth-card .auth-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: var(--auth-text);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    outline: none;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}

.auth-card .auth-input:focus {
    border-color: var(--auth-ink);
    box-shadow: 0 0 0 3px rgba(17, 16, 24, .08);
}

.auth-card .auth-input.auth-input-senha {
    padding-right: 44px;
}

.auth-olho {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--auth-muted);
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-olho:hover {
    color: var(--auth-ink);
    background: var(--auth-bg);
}

/* Botão */
.auth-btn {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--auth-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
}

.auth-btn:hover,
.auth-btn:focus {
    background: var(--auth-brand);
    color: #fff;
}

.auth-seguro {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--auth-muted);
}

.auth-voltar {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

.auth-voltar a {
    color: var(--auth-brand);
    font-weight: 600;
    text-decoration: none;
}

.auth-voltar a:hover {
    color: var(--auth-brand-dark);
    text-decoration: underline;
}

.auth-alerta {
    font-size: 14px;
    text-align: center;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.auth-alerta-info {
    background: #f1ebfb;
    color: var(--auth-brand-dark);
}

.auth-alerta-erro {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 480px) {
    .auth-header,
    .auth-footer {
        padding: 16px;
    }

    .auth-footer {
        flex-direction: column;
    }

    .auth-card {
        padding: 28px 20px;
    }
}
