/* Reset completo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

/* Background igual al hero */
body {
    background: linear-gradient(135deg, #64748b 0%, #0ea5e9 100%);
    position: relative;
    overflow: hidden;
}

/* Cuadrícula igual al hero */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

/* Container principal */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Tarjeta de login */
.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}

/* Header de la tarjeta */
.login-header {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

/* Cuerpo de la tarjeta */
.login-body {
    padding: 40px;
}

/* Estilos de formulario */
.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}

/* Botón de login */
.btn-login {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

/* Scrollbar personalizado */
.login-card::-webkit-scrollbar {
    width: 8px;
}

.login-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.login-card::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 4px;
}

.login-card::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Estilos para SweetAlert2 */
.swal2-popup {
    border-radius: 15px !important;
    font-family: 'Inter', sans-serif !important;
}

.swal2-title {
    color: #2d3748 !important;
    font-weight: 600 !important;
}

.swal2-html-container {
    margin: 1rem 0 !important;
}

.swal2-confirm {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 12px 24px !important;
}

.swal2-html-container ul {
    margin: 0;
    padding-left: 20px;
}

.swal2-html-container li {
    margin-bottom: 8px;
    color: #dc3545;
}

.swal2-html-container li:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-height: 700px) {
    .login-container {
        padding: 10px;
    }
    
    .login-header {
        padding: 30px;
    }
    
    .login-body {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .login-card {
        max-height: 95vh;
        margin: 10px;
    }
}
