/* publico/assets/css/login.css */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0052cc 0%, #0079bf 40%, #00b4d8 100%);
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* ── Bolhas ─────────────────────────────────────────────── */
.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.2);
    animation: bubble-rise linear infinite;
}

.bubble:nth-child(1)  { width: 28px;  height: 28px;  left: 8%;   animation-duration: 7s;  animation-delay: 0s;   }
.bubble:nth-child(2)  { width: 16px;  height: 16px;  left: 16%;  animation-duration: 9s;  animation-delay: 1.5s; }
.bubble:nth-child(3)  { width: 44px;  height: 44px;  left: 25%;  animation-duration: 11s; animation-delay: 0.5s; }
.bubble:nth-child(4)  { width: 20px;  height: 20px;  left: 35%;  animation-duration: 8s;  animation-delay: 3s;   }
.bubble:nth-child(5)  { width: 56px;  height: 56px;  left: 45%;  animation-duration: 13s; animation-delay: 1s;   }
.bubble:nth-child(6)  { width: 18px;  height: 18px;  left: 55%;  animation-duration: 7s;  animation-delay: 4s;   }
.bubble:nth-child(7)  { width: 36px;  height: 36px;  left: 63%;  animation-duration: 10s; animation-delay: 2s;   }
.bubble:nth-child(8)  { width: 14px;  height: 14px;  left: 72%;  animation-duration: 8s;  animation-delay: 0.8s; }
.bubble:nth-child(9)  { width: 48px;  height: 48px;  left: 80%;  animation-duration: 12s; animation-delay: 3.5s; }
.bubble:nth-child(10) { width: 22px;  height: 22px;  left: 90%;  animation-duration: 9s;  animation-delay: 1.2s; }
.bubble:nth-child(11) { width: 12px;  height: 12px;  left: 5%;   animation-duration: 6s;  animation-delay: 5s;   }
.bubble:nth-child(12) { width: 32px;  height: 32px;  left: 50%;  animation-duration: 10s; animation-delay: 2.5s; }

@keyframes bubble-rise {
    0%   { transform: translateY(0) translateX(0)   scale(1);    opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateY(-50vh) translateX(20px)  scale(1.05); }
    90%  { opacity: .6; }
    100% { transform: translateY(-110vh) translateX(-10px) scale(.9);  opacity: 0; }
}

/* ── Card ─────────────────────────────────────────────── */
.login-bg {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,.97);
    border-radius: 20px;
    padding: 42px 38px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.3);
    animation: card-in .5s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

/* Reflexo no topo do card */
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
    border-radius: 99px;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Logo ─────────────────────────────────────────────── */
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

/* ── Header ───────────────────────────────────────────── */
.login-header { margin-bottom: 26px; text-align: center; }

.login-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
    color: #0052cc;
    margin-bottom: 4px;
}

.login-header p {
    font-size: .85rem;
    color: #94a3b8;
}

/* ── Alerta ───────────────────────────────────────────── */
.login-alert {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Formulário ───────────────────────────────────────── */
.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }

.login-field label {
    font-size: .75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.login-input-wrap { position: relative; }

.login-input-wrap > i {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .82rem;
    pointer-events: none;
}

.login-input-wrap input {
    width: 100%;
    padding: 11px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-input-wrap input:focus {
    outline: none;
    border-color: #0079bf;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,121,191,.12);
}

.login-input-wrap input::placeholder { color: #cbd5e1; }

.login-eye {
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer;
    color: #cbd5e1;
    font-size: .82rem;
    padding: 4px;
    transition: color .2s;
}
.login-eye:hover { color: #0079bf; }

/* ── Botão ────────────────────────────────────────────── */
.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0052cc, #0079bf);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    letter-spacing: .01em;
    box-shadow: 0 4px 14px rgba(0,82,204,.35);
    transition: filter .2s, transform .15s, box-shadow .2s;
}

.login-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,82,204,.4);
}

.login-btn:active { transform: translateY(0); }

/* ── Footer ───────────────────────────────────────────── */
.login-footer {
    text-align: center;
    margin-top: 22px;
}

.login-footer::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #e2e8f0;
    margin: 0 auto 16px;
}

.login-footer a {
    font-size: .8rem;
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}

.login-footer a:hover { color: #0052cc; }

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .login-card { padding: 32px 22px; border-radius: 16px; }
    .login-header h1 { font-size: 1.35rem; }
}