/* assets/css/auth.css - Estilos específicos para autenticación */

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

.auth-header-mobile {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.2rem 1rem;
    margin: -1rem -1rem 1rem -1rem;
    border-radius: 0;
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo-graphic {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.auth-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Vista desktop para auth */
@media (min-width: 769px) {
    .login-container {
        padding: 2rem;
    }
    
    .auth-logo-graphic {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}

/* Vista móvil muy pequeña */
@media (max-width: 360px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .auth-logo-graphic {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .auth-title {
        font-size: 1.1rem;
    }
}

/* Ajustes para altura muy pequeña */
@media (max-height: 600px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .auth-logo {
        margin-bottom: 1rem;
    }
    
    .auth-subtitle {
        margin-bottom: 1rem;
    }
}

/* ===== MEJORAS PARA LOGIN MÓVIL ===== */
.mobile-auth-container {
    padding: 1rem;
}

.mobile-auth-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

/* Corrección para el toggle de contraseña móvil */
.password-input-group {
    position: relative;
}

.password-toggle-mobile {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 1.1rem;
    z-index: 2;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.password-toggle-mobile:hover {
    background: var(--border-light);
    color: var(--text);
}

.password-toggle-mobile:active {
    transform: translateY(-50%) scale(0.95);
}

.password-input-group .form-input {
    padding-right: 50px !important;
}

/* Mejoras responsive para móvil */
@media (max-width: 768px) {
    .mobile-auth-container {
        padding: 0.5rem;
    }
    
    .mobile-auth-card {
        padding: 1.2rem;
        margin: 0.5rem;
    }
    
    .auth-header-mobile {
        margin: -0.5rem -0.5rem 1rem -0.5rem;
        border-radius: 0;
    }
}

@media (max-width: 360px) {
    .mobile-auth-card {
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .password-toggle-mobile {
        right: 8px;
        padding: 0.4rem;
    }
    
    .password-input-group .form-input {
        padding-right: 45px !important;
    }
}