body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Efeito de partículas no fundo */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0.5;
    }
}

.login-container {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    animation: container-appear 0.6s ease-out;
}

@keyframes container-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-header img {
    max-width: 220px;
    margin-bottom: 25px;
    animation: logo-appear 1s ease-out;
}

@keyframes logo-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-header h1 {
    color: #00d4ff;
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.login-header p {
    color: #999;
    font-size: 15px;
    margin: 0;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-group {
    position: relative;
    transition: all 0.3s ease;
}

.input-group i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 18px;
    color: #666;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.input-group:focus-within i {
    color: #00d4ff;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4ff 0%, #00bfe6 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-login:hover::after {
    left: 100%;
}

.error-message {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message i {
    margin-right: 8px;
    font-size: 16px;
}

/* Efeito de hover nos inputs */
.input-group:hover input {
    border-color: rgba(0, 212, 255, 0.3);
}

/* Efeito de foco no label */
.form-group:focus-within label {
    color: #00d4ff;
}

/* Animação de loading no botão */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .login-header img {
        max-width: 180px;
    }
}
