/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
    font-family: 'Poppins', sans-serif;
    color: white;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
.btn-redefinir {
    display: inline-block;
    padding: 12px 24px;
    background-color: #00f0ff;
    color: black;
    border-radius: 8px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    text-decoration: none;
    position: relative;
    transition: background-color 0.3s ease, opacity 0.3s;
}

.btn-redefinir:hover {
    background-color: #00c4cc;
}

.btn-redefinir.disabled {
    background-color: gray;
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 8px #00f0ff;
    opacity: 0.6;
    z-index: 1;
}

.container {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: space-around;
    padding: 0 5%;
}

.login-section {
    width: 450px;
    background: rgba(20, 20, 40, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.3);
    border: 1px solid rgba(74, 144, 226, 0.2);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.img-logo img {
    width: 120px;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    color: #4A90E2;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.subtitle {
    font-family: 'Orbitron', sans-serif;
    color: #AAAAAA;
    margin-bottom: 30px;
    font-size: 1rem;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid #4A90E2;
    border-radius: 50px;
    background: rgba(30, 30, 60, 0.5);
    padding: 0 20px;
    transition: all 0.3s ease;
}

.input-group:hover {
    border-color: #6ab0ff;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

.input-group img {
    width: 25px;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px rgba(74, 144, 226, 0.7));
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 0;
    color: white;
    font-size: 1rem;
    outline: none;
}

.input-group input::placeholder {
    color: #AAAAAA;
    font-family: 'Poppins', sans-serif;
}

.btn-redefinir {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background: linear-gradient(90deg, #473967 0%, #707DA4 100%);
    color: white;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-redefinir:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(74, 144, 226, 0.4), 
        transparent);
    transition: 0.5s;
}

.btn-redefinir:hover .btn-glow {
    left: 100%;
}

.robot-section {
    position: relative;
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-robot {
    width: 350px;
    z-index: 2;
    animation: float-robot 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.6));
}

@keyframes float-robot {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.robot-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.connection-lines .line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #4A90E2, transparent);
    height: 1px;
    width: 100%;
    opacity: 0.3;
}

.connection-lines .line:nth-child(1) {
    top: 20%;
    animation: line-flow 8s linear infinite;
}

.connection-lines .line:nth-child(2) {
    top: 50%;
    animation: line-flow 6s linear infinite;
    animation-delay: 1s;
}

.connection-lines .line:nth-child(3) {
    top: 80%;
    animation: line-flow 10s linear infinite;
    animation-delay: 2s;
}

@keyframes line-flow {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    51% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Efeitos de partículas */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 80% 70%, rgba(74, 144, 226, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 40% 60%, rgba(74, 144, 226, 0.1) 0%, transparent 2%),
        radial-gradient(circle at 60% 20%, rgba(74, 144, 226, 0.1) 0%, transparent 2%);
    background-size: 600px 600px;
    animation: particles 20s linear infinite;
}

@keyframes particles {
    0% { background-position: 0 0, 100px 100px, 300px 300px, 200px 200px; }
    100% { background-position: 600px 600px, 700px 700px, 900px 900px, 800px 800px; }
}

/* Responsivo */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
    }
    
    .login-section {
        width: 90%;
        margin-bottom: 40px;
    }
    
    .robot-section {
        width: 100%;
        height: auto;
    }
    
    .floating-robot {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .login-section {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .input-group {
        padding: 0 15px;
    }
    
    .input-group img {
        width: 20px;
        margin-right: 10px;
    }
}