.login-body {
    background: #0f172a;
    /* Dark sleek background */
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove default body margin */
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Animated Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float 20s infinite ease-in-out alternate;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 155, 58, 0.25);
    /* verde */
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 39, 118, 0.4);
    /* azul */
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.shape3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 217, 0, 0.15);
    /* amarelo */
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    perspective: 1000px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: cardEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateY(30px) rotateX(10deg);
    opacity: 0;
}

@keyframes cardEntrance {
    to {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--brasil-verde, #009b3a), var(--brasil-azul, #002776));
    border-radius: 20px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 24px rgba(0, 39, 118, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    animation: iconPop 0.6s 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
}

.logo-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
}

@keyframes iconPop {
    to {
        transform: scale(1);
    }
}

.login-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.login-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.alert-erro {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.875rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.alert-erro::before {
    content: "⚠️";
    font-size: 1.1rem;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Floating Labels */
.input-group {
    position: relative;
    width: 100%;
}

.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem 1rem 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brasil-amarelo, #ffd900);
    box-shadow: 0 0 0 3px rgba(255, 217, 0, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: 0.45rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--brasil-amarelo, #ffd900);
    font-weight: 600;
}

.btn-glow {
    position: relative;
    margin-top: 1rem;
    border: none;
    border-radius: 12px;
    padding: 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brasil-verde, #009b3a), var(--brasil-azul, #002776));
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 39, 118, 0.4);
}

.btn-glow span {
    display: block;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.12));
    transition: none;
    z-index: 0;
    transform: none;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 39, 118, 0.5);
}

.btn-glow:hover::before {
    left: 0;
}

.btn-glow:active {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(0, 39, 118, 0.3);
}

/* Add custom focus styles */
*:focus-visible {
    outline: 2px solid var(--brasil-amarelo, #ffd900);
    outline-offset: 2px;
}

@media (min-width: 769px) {
    .btn-glow::before {
        left: -100%;
        width: 60%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s ease;
        transform: skewX(-20deg);
    }

    .btn-glow:hover::before {
        left: 150%;
    }
}