/* ==========================================================
   GRUPO UBARANAS
   LOGIN DO PAINEL ADMINISTRATIVO
   Arquivo: admin/login.css
========================================================== */


/* ==========================================================
   RESET E VARIÁVEIS
========================================================== */

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

:root {
    --azul-fundo: #03101f;
    --azul-fundo-claro: #06182c;
    --azul-painel: #0b2744;
    --azul-painel-claro: #12385f;

    --azul-eletrico: #1495ff;
    --azul-claro: #55b7ff;
    --azul-gelo: #cfe9ff;

    --branco: #ffffff;

    --cinza-claro: #d8e4ee;
    --cinza-medio: #8fa5b8;
    --cinza-escuro: #60798f;

    --verde: #2bd576;
    --verde-fundo: rgba(43, 213, 118, 0.12);

    --vermelho: #ff5d6c;
    --vermelho-fundo: rgba(255, 93, 108, 0.12);

    --borda: rgba(85, 183, 255, 0.18);
    --borda-forte: rgba(85, 183, 255, 0.35);

    --sombra:
        0 25px 70px rgba(0, 0, 0, 0.45);

    --transicao: 0.25s ease;
}


/* ==========================================================
   CONFIGURAÇÕES GERAIS
========================================================== */

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--branco);
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(20, 149, 255, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(85, 183, 255, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--azul-fundo) 0%,
            var(--azul-fundo-claro) 50%,
            #041426 100%
        );

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================
   ELEMENTOS DECORATIVOS DO FUNDO
========================================================== */

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(10px);
}

body::before {
    width: 360px;
    height: 360px;
    top: -150px;
    right: -120px;

    background:
        radial-gradient(
            circle,
            rgba(20, 149, 255, 0.22),
            transparent 68%
        );
}

body::after {
    width: 420px;
    height: 420px;
    left: -170px;
    bottom: -190px;

    background:
        radial-gradient(
            circle,
            rgba(85, 183, 255, 0.15),
            transparent 70%
        );
}


/* ==========================================================
   PÁGINA DE LOGIN
========================================================== */

.login-page {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 100vh;

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

    padding: 32px 20px;
}


/* ==========================================================
   CARTÃO DE LOGIN
========================================================== */

.login-card {
    position: relative;
    width: 100%;
    max-width: 470px;

    padding: 38px 38px 32px;

    background:
        linear-gradient(
            145deg,
            rgba(11, 39, 68, 0.97),
            rgba(5, 25, 47, 0.97)
        );

    border: 1px solid var(--borda);
    border-radius: 24px;

    box-shadow: var(--sombra);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    overflow: hidden;

    animation: aparecerCartao 0.6s ease both;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--azul-claro),
            transparent
        );

    box-shadow:
        0 0 18px rgba(85, 183, 255, 0.8);
}

.login-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    top: -100px;
    right: -90px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(20, 149, 255, 0.16),
            transparent 70%
        );

    pointer-events: none;
}


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

.login-logo {
    position: relative;
    z-index: 1;

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

    margin-bottom: 24px;
}

.login-logo img {
    display: block;

    width: auto;
    max-width: 230px;
    max-height: 95px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 8px 22px rgba(0, 0, 0, 0.32)
        );
}


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

.login-header {
    position: relative;
    z-index: 1;

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

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 16px;
    padding: 8px 14px;

    color: var(--azul-claro);

    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;

    background:
        rgba(20, 149, 255, 0.1);

    border:
        1px solid rgba(85, 183, 255, 0.25);

    border-radius: 999px;
}

.login-badge i {
    font-size: 0.85rem;
}

.login-header h1 {
    margin-bottom: 12px;

    color: var(--branco);

    font-size: clamp(1.7rem, 5vw, 2.15rem);
    font-weight: 800;
    line-height: 1.15;
}

.login-header p {
    max-width: 390px;
    margin: 0 auto;

    color: var(--cinza-medio);

    font-size: 0.94rem;
    line-height: 1.65;
}


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

.login-form {
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--azul-gelo);

    font-size: 0.88rem;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i {
    position: absolute;
    left: 17px;
    z-index: 2;

    color: var(--cinza-escuro);

    font-size: 0.96rem;

    pointer-events: none;

    transition:
        color var(--transicao),
        transform var(--transicao);
}

.input-wrapper input {
    width: 100%;
    min-height: 54px;

    padding:
        0 52px
        0 48px;

    color: var(--branco);

    font-size: 0.95rem;

    background:
        rgba(3, 16, 31, 0.72);

    border:
        1px solid rgba(143, 165, 184, 0.2);

    border-radius: 13px;

    outline: none;

    transition:
        border-color var(--transicao),
        box-shadow var(--transicao),
        background var(--transicao);
}

.input-wrapper input::placeholder {
    color: rgba(143, 165, 184, 0.68);
}

.input-wrapper input:hover {
    border-color:
        rgba(85, 183, 255, 0.32);
}

.input-wrapper input:focus {
    background:
        rgba(3, 16, 31, 0.92);

    border-color:
        var(--azul-eletrico);

    box-shadow:
        0 0 0 4px
        rgba(20, 149, 255, 0.12);
}

.input-wrapper:focus-within > i {
    color: var(--azul-claro);
    transform: scale(1.05);
}


/* ==========================================================
   BOTÃO MOSTRAR SENHA
========================================================== */

.btn-show-password {
    position: absolute;
    right: 8px;
    z-index: 3;

    width: 40px;
    height: 40px;

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

    color: var(--cinza-medio);

    background: transparent;

    border-radius: 9px;

    cursor: pointer;

    transition:
        color var(--transicao),
        background var(--transicao),
        transform var(--transicao);
}

.btn-show-password:hover {
    color: var(--azul-claro);

    background:
        rgba(20, 149, 255, 0.1);
}

.btn-show-password:active {
    transform: scale(0.94);
}

.btn-show-password:focus-visible {
    outline:
        2px solid var(--azul-claro);

    outline-offset: 2px;
}


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

.login-message {
    display: none;

    width: 100%;

    margin:
        3px 0
        18px;

    padding:
        12px 14px;

    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;

    border-radius: 11px;
}

.login-message.visivel {
    display: block;

    animation:
        aparecerMensagem 0.25s ease both;
}

.login-message.erro {
    display: block;

    color: #ffadb5;

    background:
        var(--vermelho-fundo);

    border:
        1px solid rgba(255, 93, 108, 0.3);
}

.login-message.sucesso {
    display: block;

    color: #92f1b8;

    background:
        var(--verde-fundo);

    border:
        1px solid rgba(43, 213, 118, 0.3);
}

.login-message[hidden] {
    display: none !important;
}


/* ==========================================================
   BOTÃO ENTRAR
========================================================== */

.btn-login {
    position: relative;

    width: 100%;
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 6px;
    padding: 0 20px;

    color: var(--branco);

    font-size: 0.97rem;
    font-weight: 800;
    letter-spacing: 0.02em;

    background:
        linear-gradient(
            135deg,
            #087ee5,
            var(--azul-eletrico),
            #32a9ff
        );

    border-radius: 13px;

    box-shadow:
        0 12px 28px
        rgba(20, 149, 255, 0.28);

    cursor: pointer;

    overflow: hidden;

    transition:
        transform var(--transicao),
        box-shadow var(--transicao),
        filter var(--transicao);
}

.btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;

    width: 90%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent
        );

    transform: skewX(-20deg);

    transition:
        left 0.6s ease;
}

.btn-login:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 34px
        rgba(20, 149, 255, 0.38);
}

.btn-login:hover::before {
    left: 135%;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:focus-visible {
    outline:
        3px solid rgba(85, 183, 255, 0.55);

    outline-offset: 3px;
}

.btn-login:disabled {
    opacity: 0.7;

    cursor: wait;

    transform: none;
    filter: grayscale(0.1);
}

.btn-login i {
    position: relative;
    z-index: 1;
}

.btn-login,
.btn-login span {
    position: relative;
    z-index: 1;
}


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

.login-footer {
    position: relative;
    z-index: 1;

    margin-top: 28px;
    padding-top: 23px;

    text-align: center;

    border-top:
        1px solid rgba(85, 183, 255, 0.12);
}

.login-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 16px;

    color: var(--azul-claro);

    font-size: 0.88rem;
    font-weight: 700;

    transition:
        color var(--transicao),
        transform var(--transicao);
}

.login-footer a:hover {
    color: var(--branco);
    transform: translateX(-3px);
}

.login-footer p {
    margin-top: 4px;

    color: var(--cinza-escuro);

    font-size: 0.78rem;
    line-height: 1.4;
}


/* ==========================================================
   AUTOPREENCHIMENTO DO NAVEGADOR
========================================================== */

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--branco);

    box-shadow:
        0 0 0 1000px
        #071c32 inset;

    transition:
        background-color 9999s ease-in-out 0s;

    caret-color: var(--branco);
}


/* ==========================================================
   ANIMAÇÕES
========================================================== */

@keyframes aparecerCartao {
    from {
        opacity: 0;
        transform:
            translateY(22px)
            scale(0.98);
    }

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

@keyframes aparecerMensagem {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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


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

@media (max-width: 560px) {
    .login-page {
        align-items: flex-start;
        padding:
            20px 14px;
    }

    .login-card {
        padding:
            30px 22px
            25px;

        border-radius: 20px;
    }

    .login-logo {
        margin-bottom: 20px;
    }

    .login-logo img {
        max-width: 195px;
        max-height: 82px;
    }

    .login-header {
        margin-bottom: 24px;
    }

    .login-header h1 {
        font-size: 1.65rem;
    }

    .login-header p {
        font-size: 0.88rem;
    }

    .login-badge {
        padding:
            7px 12px;

        font-size: 0.67rem;
    }

    .input-wrapper input {
        min-height: 52px;
    }

    .btn-login {
        min-height: 52px;
    }
}

@media (max-width: 370px) {
    .login-card {
        padding:
            26px 17px
            22px;
    }

    .login-header h1 {
        font-size: 1.48rem;
    }

    .input-wrapper input {
        padding-left: 44px;
    }

    .input-wrapper > i {
        left: 15px;
    }
}


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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Campos de ativação, sem fontes ou dependências externas adicionais. */
#activationForm{display:grid;gap:12px;margin:22px 0;text-align:left}#activationForm[hidden]{display:none}#activationForm input{width:100%;padding:13px;border:1px solid #9dbed2;border-radius:8px;font:inherit}#activationMessage{margin:18px 0;line-height:1.6}#validateInvite[hidden]{display:none}
