/* =========================================
   LOGIN THEME CSS
   ========================================= */

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #050510;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0f2f8;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    position: relative;
}

/* AURORA BOREAL ANIMADA */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora-beam {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0;
    animation: auroraFloat 12s ease-in-out infinite;
}
.aurora-beam:nth-child(1) {
    width: 600px; height: 400px; background: rgba(99,102,241,0.25);
    top: -10%; left: -5%; animation-delay: 0s; animation-duration: 14s;
}
.aurora-beam:nth-child(2) {
    width: 500px; height: 350px; background: rgba(139,92,246,0.20);
    top: 20%; right: -10%; animation-delay: 3s; animation-duration: 16s;
}
.aurora-beam:nth-child(3) {
    width: 450px; height: 300px; background: rgba(6,182,212,0.18);
    bottom: -5%; left: 30%; animation-delay: 6s; animation-duration: 18s;
}
.aurora-beam:nth-child(4) {
    width: 350px; height: 250px; background: rgba(232,121,164,0.12);
    top: 50%; left: 10%; animation-delay: 9s; animation-duration: 20s;
}

@keyframes auroraFloat {
    0%   { opacity: 0; transform: translate(0, 0) scale(1); }
    25%  { opacity: 0.8; }
    50%  { opacity: 0.6; transform: translate(80px, -40px) scale(1.2); }
    75%  { opacity: 0.9; }
    100% { opacity: 0; transform: translate(-30px, 30px) scale(1); }
}

/* PARTÍCULAS FLUTUANTES */
.particles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.particle {
    position: absolute; width: 3px; height: 3px; background: rgba(255,255,255,0.3);
    border-radius: 50%; animation: particleRise linear infinite;
}
@keyframes particleRise {
    from { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    to { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* CARD DE LOGIN */
.login-wrap {
    width: 100%; max-width: 440px; z-index: 10; position: relative;
    animation: cardReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card {
    background: rgba(12, 12, 24, 0.70);
    backdrop-filter: blur(40px) saturate(1.3);
    -webkit-backdrop-filter: blur(40px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    padding: 48px 42px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}

.logo-header { text-align: center; margin-bottom: 38px; }

.logo-icon-wrap {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px; display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: 20px;
    animation: iconPulse 4s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.3); }
    50% { box-shadow: 0 0 0 12px rgba(99,102,241,0); }
}

.logo-icon-wrap i { font-size: 1.6rem; color: #818cf8; }

.saudacao { font-size: 0.82rem; color: #6b7a99; margin-bottom: 6px; font-weight: 400; }

.logo-header h1 {
    font-size: 1.65rem; font-weight: 900; letter-spacing: -0.8px;
    background: linear-gradient(135deg, #f0f2f8, #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 4px;
}
.logo-header p { font-size: 0.82rem; color: #4a5568; font-weight: 400; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.70rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: #64748b; margin-bottom: 8px;
}

.input-box {
    position: relative; background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 14px; transition: 0.25s;
}
.input-box:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
    background: rgba(99,102,241,0.04);
}
.input-box input {
    width: 100%; padding: 14px 16px 14px 48px;
    background: transparent; border: none; color: #f0f2f8;
    font-family: 'Inter', sans-serif; font-size: 0.92rem;
    font-weight: 500; outline: none;
}
.input-box input::placeholder { color: #334155; }
.input-box > i {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    color: #334155; font-size: 0.88rem; transition: color 0.2s;
}
.input-box:focus-within > i { color: #818cf8; }

.error-badge {
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15);
    color: #f87171; padding: 12px 16px; border-radius: 12px;
    font-size: 0.83rem; margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}

.btn-submit {
    width: 100%; padding: 15px; border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; border: none; font-family: 'Inter', sans-serif;
    font-size: 0.82rem; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; cursor: pointer; margin-top: 8px;
    transition: 0.3s; position: relative; overflow: hidden;
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99,102,241,0.35);
}
.btn-submit::after {
    content: ""; position: absolute; top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-15deg); transition: 0.6s;
}
.btn-submit:hover::after { left: 160%; }

.footer-links {
    margin-top: 32px; display: flex; flex-direction: column;
    gap: 14px; align-items: center;
}
.divider {
    width: 100%; display: flex; align-items: center; gap: 12px;
    color: #334155; font-size: 0.68rem; letter-spacing: 1.5px; font-weight: 600;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.portal-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-portal {
    text-decoration: none; color: #64748b; font-size: 0.80rem;
    font-weight: 600; transition: 0.2s; display: flex;
    align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}
.btn-portal:hover {
    color: #f0f2f8; background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1); transform: translateY(-2px);
}

.version-tag {
    text-align: center; margin-top: 24px; font-size: 0.62rem;
    color: #1e293b; letter-spacing: 2px; font-weight: 600;
}

@media (max-width: 480px) {
    .login-card { padding: 36px 24px; border-radius: 22px; }
    .logo-header h1 { font-size: 1.35rem; }
    .portal-links { flex-direction: column; width: 100%; }
    .btn-portal { justify-content: center; }
}
