/* ============================================================
   VECTOREXEC - LOGIN (SIMPLIFICADO)
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d47a1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ============================================================
   ENLACE VOLVER
   ============================================================ */

.back-link {
    display: inline-block;
    color: #a0c4ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ============================================================
   CONTENEDOR
   ============================================================ */

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
}

/* ============================================================
   HEADER
   ============================================================ */

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #0D47A1;
    letter-spacing: -0.5px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
}

.login-header .subtitle {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
}

/* ============================================================
   FORMULARIO
   ============================================================ */

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    letter-spacing: 0.3px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1a202c;
    background: #f7fafc;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #0D47A1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

.form-group input.error {
    border-color: #e53e3e;
    background: #fff5f5;
}

/* ============================================================
   MENSAJES
   ============================================================ */

.message {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.message.show {
    display: flex;
}

.message.error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.message.success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #9ae6b4;
}

.message.info {
    background: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #90cdf4;
}

/* ============================================================
   BOTÓN
   ============================================================ */

.btn-primary {
    padding: 14px 24px;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.login-footer {
    text-align: center;
    margin-top: 8px;
}

.login-footer p {
    font-size: 14px;
    color: #718096;
    margin: 6px 0;
}

.login-footer a {
    color: #0D47A1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #1565C0;
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .logo-text {
        font-size: 24px;
    }

    .btn-primary {
        font-size: 15px;
        padding: 12px 20px;
    }

    .form-group input {
        font-size: 14px;
        padding: 10px 14px;
    }
}
