/* =====================================================================
   Sistema Arara  -  Estilo da TELA DE LOGIN  (login.css)
   ---------------------------------------------------------------------
   Secoes:
     1. Reset e variaveis
     2. Plano de fundo com efeitos animados
     3. Conteiner (card) compacto de login
     4. Logo e titulos
     5. Campos do formulario
     6. Botao entrar
     7. Alerta e rodape
   ===================================================================== */

/* ------------------------- 1. Reset e variaveis -------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --cor-primaria:  #2563eb;
    --cor-primaria2: #7c3aed;
    --cor-texto:     #1e293b;
    --cor-suave:     #64748b;
    --branco:        #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(-45deg, #0f172a, #0d9488, #059669, #155e75);
    background-size: 400% 400%;
    animation: gradiente 15s ease infinite;   /* fundo que se move suavemente */
}

@keyframes gradiente {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --------------- 2. Plano de fundo com efeitos animados ------------ */
/* Bolhas que sobem flutuando para dar profundidade ao fundo */
.fundo-animado {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}
.fundo-animado span {
    position: absolute;
    bottom: -160px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: subir 18s linear infinite;
}
.fundo-animado span:nth-child(1)  { left: 10%; width: 80px;  height: 80px;  animation-delay: 0s;   }
.fundo-animado span:nth-child(2)  { left: 20%; width: 30px;  height: 30px;  animation-delay: 2s;   animation-duration: 12s; }
.fundo-animado span:nth-child(3)  { left: 30%; width: 50px;  height: 50px;  animation-delay: 4s;   }
.fundo-animado span:nth-child(4)  { left: 45%; width: 100px; height: 100px; animation-delay: 0s;   animation-duration: 22s; }
.fundo-animado span:nth-child(5)  { left: 55%; width: 35px;  height: 35px;  animation-delay: 3s;   }
.fundo-animado span:nth-child(6)  { left: 65%; width: 70px;  height: 70px;  animation-delay: 5s;   }
.fundo-animado span:nth-child(7)  { left: 75%; width: 45px;  height: 45px;  animation-delay: 2s;   animation-duration: 16s; }
.fundo-animado span:nth-child(8)  { left: 85%; width: 60px;  height: 60px;  animation-delay: 6s;   }
.fundo-animado span:nth-child(9)  { left: 90%; width: 25px;  height: 25px;  animation-delay: 1s;   animation-duration: 10s; }
.fundo-animado span:nth-child(10) { left: 5%;  width: 55px;  height: 55px;  animation-delay: 7s;   }

@keyframes subir {
    0%   { transform: translateY(0) rotate(0deg);     opacity: 0;   border-radius: 50%; }
    10%  { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; border-radius: 20%; }
}

/* ------------- 3. Conteiner (card) compacto de login -------------- */
.login-card {
    position: relative;
    z-index: 1;
    width: 270px;                 /* ainda menor / mais compacto */
    padding: 26px 22px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    text-align: center;
    animation: aparecer 0.6s ease;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------- 4. Logo e titulos -------------------------- */
.login-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.login-titulo {
    font-size: 22px;
    font-weight: 700;
    color: var(--cor-texto);
    letter-spacing: .5px;
}
.login-subtitulo {
    font-size: 12px;
    color: var(--cor-suave);
    margin-bottom: 16px;
}

/* --------------------- 5. Campos do formulario -------------------- */
.campo {
    text-align: left;
    margin-bottom: 14px;
}
.campo label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--cor-suave);
    margin-bottom: 5px;
}
.campo input {
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}
.campo input:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ------------------------ 6. Botao entrar ------------------------- */
.btn-entrar {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--branco);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-primaria2));
    transition: transform .15s, box-shadow .2s;
}
.btn-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}
.btn-entrar:active { transform: translateY(0); }

/* ---------------------- 7. Alerta e rodape ------------------------ */
.login-alerta {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 9px;
    margin-bottom: 14px;
}
.login-rodape {
    margin-top: 18px;
    font-size: 11px;
    color: var(--cor-suave);
}
