/* =========================================
   HAVOKSYSTEM - ESTILO ÁREA DE AUTENTICAÇÃO
   Arquivo: assets/css/havok-auth.css
   ========================================= */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corpo padrão para telas de login, registrar e splash */
.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1c1c1c;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ffffff;
}

/* Container central (card) */
.auth-container {
    width: 100%;
    max-width: 380px;
    background: #1f1f1f;
    border-radius: 14px;
    padding: 24px 20px 26px;
    border: 1px solid rgba(129, 144, 118, 0.5);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo centralizada */
.auth-logo {
    width: 120px;
    height: auto;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
    letter-spacing: 0.04em;
}

/* Formulário */
.auth-form {
    width: 100%;
    margin-top: 8px;
}

.auth-field {
    margin-bottom: 12px;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #d6d6d6;
}

.auth-input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(129, 144, 118, 0.5);
    background: #1f1f1f;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
    border-color: rgba(129, 144, 118, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 255, 145, 0.4);
}

/* Toggle senha */
.havok-password-wrap {
    position: relative;
    display: block;
}

.havok-password-input {
    padding-right: 38px;
}

.havok-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(129, 144, 118, 0.5);
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.havok-password-toggle::before {
    content: "";
    width: 30px;
    height: 30px;
    background-color: rgba(129, 144, 118, 0.5);
    -webkit-mask: url("/assets/img/icons/eye-off.png") no-repeat center / contain;
    mask: url("/assets/img/icons/eye-off.png") no-repeat center / contain;
}

.havok-password-toggle.is-visible::before {
    -webkit-mask-image: url("/assets/img/icons/eye.png");
    mask-image: url("/assets/img/icons/eye.png");
}

/* Botão principal (verde redondo) */
.auth-button {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 6px;
    cursor: pointer;
    background: #00ff91;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.auth-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 255, 145, 0.4);
}

.auth-button:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.9;
}

/* Links menores (Criar conta, Esqueci a senha etc.) */
.auth-links {
    width: 100%;
    margin-top: 10px;
    text-align: center;
    font-size: 0.85rem;
}

.auth-link {
    color: #00ff91;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Mensagem de erro */
.auth-error {
    width: 100%;
    font-size: 0.8rem;
    color: #ff6363;
    background: rgba(255, 99, 99, 0.08);
    border: 1px solid rgba(255, 99, 99, 0.4);
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Rodapé pequeno */
.auth-footer {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #8c8c8c;
    text-align: center;
}

/* ===================== SPLASH SCREEN ===================== */

.splash-wrapper {
    min-height: 100vh;
    display: flex;
    background: #1c1c1c;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.splash-logo {
    width: 160px;
    height: auto;
    margin-bottom: 10px;
    animation: splash-pop 0.6s ease-out forwards;
}

.splash-title {
    font-size: 1.1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f5f5f5;
    opacity: 0;
    animation: splash-fade 0.9s ease-out forwards;
    animation-delay: 0.25s;
}

/* Animações */
@keyframes splash-pop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    60% {
        transform: scale(1.06);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes splash-fade {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 480px) {
    .auth-container {
        margin: 0 12px;
        padding: 20px 16px 22px;
    }

    .auth-title {
        font-size: 1.15rem;
    }

    .auth-input {
        font-size: 0.85rem;
        padding: 8px 9px;
    }

    .auth-button {
        font-size: 0.9rem;
        padding: 9px 10px;
    }

    .splash-logo {
        width: 140px;
    }
}

/* ======================================================
   BOTÕES HAVOK (PADRÃO DO PERFIL)
   APLICADOS TAMBÉM AO LOGIN / REGISTRAR / ESQUECI SENHA
====================================================== */

:root {
    --havok-bg: #050a08;
    --havok-panel-soft: #111b16;
    --havok-border: #1a2520;
    --havok-text: #c2d0b1;
    --havok-text-muted: #819076;
    --havok-accent: #a4c26a;
}

/* Botão principal estilo HAVOK (cor verde oliva) */
.havok-btn-primary {
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--havok-accent);
    color: var(--havok-bg);
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    margin-top: 10px;
    transition: 0.18s ease;
}

.havok-btn-primary:hover {
    filter: brightness(1.1);
}

/* Botão secundário idêntico ao "ALTERAR FOTO" e "GERAR PDF" */
.havok-btn-secondary {
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--havok-panel-soft);
    border: 1px solid var(--havok-border);
    border-radius: 8px;
    color: var(--havok-text);
    margin-top: 10px;
    text-decoration: none;
    transition: 0.18s ease;
}

.havok-btn-secondary:hover {
    filter: brightness(1.1);
}

/* Link simples */
.havok-btn-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--havok-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.havok-btn-link:hover {
    text-decoration: underline;
}

/* ======================================================
   HAVOK AUTH — AJUSTE FINO DE INFORMAÇÃO E FEEDBACK
   ====================================================== */

/* ---------- MENSAGENS DE ESTADO ---------- */

.auth-message,
.auth-error {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.18s ease;
}

/* Sucesso */
.auth-message.success,
.auth-error.success {
    background: rgba(164, 194, 106, 0.12);
    border: 1px solid #a4c26a;
    color: #a4c26a;
}

/* Erro */
.auth-message.error,
.auth-error {
    background: rgba(255, 95, 95, 0.10);
    border: 1px solid #ff5f5f;
    color: #ff5f5f;
}

/* Informação */
.auth-message.info {
    background: rgba(129, 144, 118, 0.12);
    border: 1px solid #819076;
    color: #c2d0b1;
}

/* ---------- CAMPOS DE FORMULÁRIO ---------- */

.auth-input {
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input:focus {
    border-color: #a4c26a;
    box-shadow: 0 0 0 2px rgba(164, 194, 106, 0.15);
}

/* Campo inválido (HTML5) */
.auth-input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff5f5f;
}

/* ---------- BOTÕES ---------- */

.auth-button {
    transition: all 0.18s ease;
}

.auth-button:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.auth-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ---------- CHECKLIST DE SENHA ---------- */

.password-checklist span {
    transition: color 0.18s ease;
}

.password-checklist .valid {
    color: #8bd672;
}

.password-checklist .invalid {
    color: #ff5f5f;
}

/* ---------- TRANSIÇÕES GERAIS ---------- */

.auth-container,
.auth-form,
.auth-footer {
    transition: all 0.18s ease;
}
