/* ============================================
   LOGIN.CSS — Dark Green Professional
   Família Pinheiro — Sistema Financeiro
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

body.login-page {
    font-family: 'Outfit', sans-serif;
    background: #0a0f0d;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 1rem;
}

/* ========== SHOOTING STARS / COMETS ========== */
.login-bg-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Cometas — riscos de luz cruzando a tela */
.comet {
    position: absolute;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, rgba(52, 211, 153, 0), rgba(52, 211, 153, 0.7), rgba(52, 211, 153, 0));
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0;
    transform: rotate(-35deg);
}

.comet::after {
    content: '';
    position: absolute;
    right: 0;
    top: -1px;
    width: 4px;
    height: 3px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.9);
    box-shadow: 0 0 6px 2px rgba(52, 211, 153, 0.4);
}

.comet-1 {
    top: 15%;
    left: -10%;
    width: 180px;
    animation: shootingStar 4s ease-in-out infinite;
    animation-delay: 0s;
}

.comet-2 {
    top: 35%;
    left: -5%;
    width: 140px;
    animation: shootingStar 5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.comet-3 {
    top: 60%;
    left: -15%;
    width: 200px;
    animation: shootingStar 6s ease-in-out infinite;
    animation-delay: 3s;
}

.comet-4 {
    top: 10%;
    left: 20%;
    width: 100px;
    transform: rotate(-45deg);
    animation: shootingStar 7s ease-in-out infinite;
    animation-delay: 2s;
}

.comet-5 {
    top: 80%;
    left: -8%;
    width: 160px;
    animation: shootingStar 4.5s ease-in-out infinite;
    animation-delay: 4s;
}

.comet-6 {
    top: 45%;
    left: 10%;
    width: 110px;
    transform: rotate(-25deg);
    animation: shootingStar 5.5s ease-in-out infinite;
    animation-delay: 5.5s;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: rotate(-35deg) translateX(0);
    }
    5% {
        opacity: 1;
    }
    30% {
        opacity: 0.6;
    }
    60% {
        opacity: 0;
        transform: rotate(-35deg) translateX(calc(100vw + 200px));
    }
    100% {
        opacity: 0;
        transform: rotate(-35deg) translateX(calc(100vw + 200px));
    }
}

/* Glow sutil de fundo */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    background: #34d399;
    animation: ambientPulse 8s ease-in-out infinite;
}

.ambient-glow-1 {
    top: -200px;
    right: -200px;
}

.ambient-glow-2 {
    bottom: -200px;
    left: -200px;
    animation-delay: 4s;
}

@keyframes ambientPulse {
    0%, 100% { opacity: 0.06; transform: scale(1); }
    50% { opacity: 0.12; transform: scale(1.1); }
}

/* Partículas flutuantes */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(52, 211, 153, 0.4);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(8) { top: 20%; left: 30%; animation-delay: 0s; }
.particle:nth-child(9) { top: 50%; left: 70%; animation-delay: 1s; width: 3px; height: 3px; }
.particle:nth-child(10) { top: 70%; left: 45%; animation-delay: 2s; }
.particle:nth-child(11) { top: 30%; left: 80%; animation-delay: 3s; width: 1px; height: 1px; }
.particle:nth-child(12) { top: 85%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
}

/* ========== GLASS PANEL ========== */
.glass-panel {
    background: rgba(20, 31, 27, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 1.25rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 26rem;
    box-shadow:
        0 0 40px rgba(52, 211, 153, 0.06),
        0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(52, 211, 153, 0.25);
    box-shadow:
        0 0 60px rgba(52, 211, 153, 0.08),
        0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* ========== HEADER ========== */
.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.login-logo {
    max-height: 5rem;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(52, 211, 153, 0.2));
    object-fit: contain;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8efe9;
    letter-spacing: 0.025em;
    margin: 0;
}

.login-subtitle {
    color: #7a8f80;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========== FORM ========== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.login-label {
    display: block;
    font-size: 0.813rem;
    font-weight: 500;
    color: #a8b8ad;
    margin-left: 0.25rem;
}

.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #e8efe9;
    font-size: 0.875rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}

.login-input::placeholder {
    color: rgba(168, 184, 173, 0.5);
}

.login-input:focus {
    outline: none;
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

/* ========== ERROR ========== */
.login-error {
    background: rgba(248, 113, 113, 0.1);
    border-left: 3px solid #f87171;
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.login-error p {
    font-size: 0.813rem;
    color: #fca5a5;
    margin: 0;
}

/* ========== BUTTON ========== */
.login-btn {
    width: 100%;
    color: #0a0f0d;
    background: linear-gradient(135deg, #34d399, #5ee8b5);
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    text-align: center;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
    transform: translateY(0);
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, #5ee8b5, #34d399);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.4);
}

.login-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25);
}

/* ========== FOOTER ========== */
.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    color: #576960;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .glass-panel {
        padding: 1.5rem;
    }

    .login-logo {
        max-height: 4rem;
    }

    .login-title {
        font-size: 1.25rem;
    }

    .comet {
        display: none;
    }
}