/* ==========================================
   LOGIN - LENTIFLIX
   ========================================== */

.app-header, .app-footer{
    display: none;
}
/* Sin el padding de .app-main la caja de 100vh cabe y no sale barra de scroll (L-1) */
.app-main {
    padding: 0;
}
/* El login no tiene scroll: no reservar el hueco de la barra (base.css), que se veía como una franja clara */
html {
    scrollbar-gutter: auto;
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */


.header-logo-card {
    width: 100%;
    height: auto;
    margin-bottom: 1em;
}
.subtitulo {
    margin: auto;
    width: fit-content;
}

.login-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin: auto;
}

/* Error */
.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.4s ease;
}

.login-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-top: 2em;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.login-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

.login-field input:hover {
    border-color: #cbd5e1;
}

.login-field input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.login-field input::placeholder {
    color: var(--color-muted);
}

/* Button */
.login-btn {
    width: 100%;
    padding: 14px 24px;
    background: #1f4fd8;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.login-footer {
    margin-top: 28px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Background decorativo */
.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.3) 0%, transparent 50%);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 28px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
}
main{
    background: #1f4fd8;
}
.app-container{
    max-width: none; 
    margin: none; 
    background: none; 
    border-radius: none; 
    padding: none; 
    box-shadow: none;
    height: 100vh;
    display: flex;
  justify-content: center; /* Centrado horizontal */
  align-items: center; 
}