/* login.css - Frutiger Aero Responsive */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0078d7 0%, #00d2ff 50%, #76db1d 100%);
    background-attachment: fixed; /* Mantiene el fondo estable al hacer scroll en móviles */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden; /* Evita scroll horizontal por las burbujas */
    position: relative;
}

/* Efecto de burbujas decorativas */
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 5px 15px rgba(255, 255, 255, 0.4);
    filter: blur(2px);
    z-index: 0;
}

.b1 { width: clamp(150px, 30vw, 300px); height: clamp(150px, 30vw, 300px); top: -50px; left: -50px; }
.b2 { width: clamp(100px, 20vw, 200px); height: clamp(100px, 20vw, 200px); bottom: -30px; right: 5%; }
.b3 { width: 80px; height: 80px; top: 15%; right: 2%; opacity: 0.5; }

.login-container {
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* El "Glassmorphism" con brillo superior */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    padding: clamp(25px, 8vw, 40px); /* Padding dinámico */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 50%);
}

.logo-area {
    text-align: center;
    margin-bottom: 30px;
}

.logo-area h1 {
    color: white;
    font-size: clamp(2.2rem, 10vw, 3rem); /* Título fluido */
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-style: italic;
    font-weight: 600;
}

/* Estilo específico para resaltar 'Global' */
.global-text {
    background: linear-gradient(to bottom, #ffffff 0%, #d1d1d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400; /* Un poco más delgado que Vantio para contraste */
    padding-right: 2px;
}

/* Mejoramos el eslogan para que no parezca técnico */
.logo-area p {
    color: #ffffff;
    margin-top: 5px;
    font-size: 0.75rem; /* Un poco más pequeño y elegante */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Efecto sutil de rotación en burbujas para dar dinamismo 'Global' */
.bubble {
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

input {
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
    transform: scale(1.01);
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(to bottom, #76db1d 0%, #4cae4c 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 2px 5px rgba(255,255,255,0.5);
    transition: all 0.2s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 2px 5px rgba(255,255,255,0.5);
}

button:active {
    transform: translateY(1px);
}

.error-msg {
    background: rgba(220, 53, 69, 0.3);
    color: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    backdrop-filter: blur(5px);
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 400px) {
    .login-container {
        padding: 10px;
    }
    
    .glass-card {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .bubble {
        opacity: 0.6; /* Menos distracciones */
    }
}