:root {
    --primary-blue: #5BC8E6;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--dark-bg);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: white;
}

/* Fundo Animado - Nuvens Tecnológicas */
.background-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.cloud {
    position: absolute;
    background: var(--primary-blue);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite alternate ease-in-out;
}

.cloud-1 { width: 400px; height: 400px; top: -10%; left: -10%; }
.cloud-2 { width: 300px; height: 300px; bottom: 10%; right: -5%; animation-delay: -5s; }
.cloud-3 { width: 250px; height: 250px; top: 40%; left: 50%; animation-delay: -10s; }

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 100px); }
}

/* Card de Login */
.login-box {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(91, 200, 230, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 400px;
    text-align: center;
}

.login-box h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.login-box h2 span {
    color: var(--primary-blue);
}

.login-box p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group input {
    width: 100%;
    padding: 12px 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #334155;
    outline: none;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    left: 10px;
    top: 12px;
    color: #64748b;
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--primary-blue);
}

.input-group input:focus {
    border-bottom: 2px solid var(--primary-blue);
}

/* Botão e Opções */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 25px;
    color: #94a3b8;
}

.options a {
    color: var(--primary-blue);
    text-decoration: none;
}

.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--primary-blue);
    color: #0f172a;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(91, 200, 230, 0.3);
}

.btn-login:hover {
    background: #4ab5d1;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(91, 200, 230, 0.5);
}

.alert {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid #ef4444;
}
