/* Login Animations v3.1 - ISP Mas Fibra Pro */

/* Fondo con gradiente animado */
.login-bg {
    background: var(--bg-primary);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.glass::-webkit-scrollbar {
    display: none;
}

/* Layout */
html, body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
}

.main-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Colores dinámicos */
.text-dynamic-primary { color: var(--text-primary); }
.text-dynamic-secondary { color: var(--text-secondary); }
.text-dynamic-muted { color: var(--text-muted); }

/* Netflix-style Floating Labels */
.netflix-container {
    position: relative;
    width: 100%;
}

.netflix-input {
    width: 100%;
    padding: 20px 12px 10px 12px;
    font-size: 16px;
    font-weight: 400;
    background: #333333;
    border: 1px solid #8C8C8C;
    border-radius: 4px;
    color: #ffffff;
    transition: all 0.15s ease-in-out;
    position: relative;
    z-index: 1;
}

.netflix-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #8C8C8C;
    font-weight: 400;
    pointer-events: none;
    z-index: 2;
    transition: all 0.15s ease-in-out;
    transform-origin: left center;
    background: transparent;
}

.netflix-input:focus + .netflix-label,
.netflix-input.has-content + .netflix-label {
    top: 8px;
    font-size: 13px;
    color: #8C8C8C;
    transform: translateY(0) scale(0.85);
}

.netflix-input:focus {
    background: #454545;
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.netflix-input:focus + .netflix-label {
    color: #ffffff;
}

.netflix-input::placeholder {
    color: transparent;
    opacity: 0;
}

/* Accesibilidad - Alto contraste */
@media (prefers-contrast: high) {
    .glass {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid #ffffff;
    }
}

/* Responsive - Móvil */
@media (max-width: 768px) {
    .main-container {
        padding: 12px;
    }

    .glass {
        max-width: calc(100vw - 24px);
        margin: 0 12px;
        padding: 20px;
    }
}

/* Responsive - Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
    .glass {
        max-width: 400px;
        padding: 24px;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    .glass {
        max-width: 420px;
        padding: 28px;
    }
}
