:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --bg-light: #f8f9fa;
    --text-muted: #6c757d;
}

body {
    background: radial-gradient(circle at top left, #ffffff 0%, #f1f3f5 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--primary-color);
    position: relative;
}

.login-footer-branding {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #dee2e6;
    box-shadow: 0 25px 50px -12px rgba(44, 62, 80, 0.25);
    overflow: hidden;
    padding: 3rem 2rem;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h3 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    margin-top: 1rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: block;
}

.input-group {
    background: #f1f3f5;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    overflow: hidden; /* Para evitar bordes de autofill */
}

.input-group:focus-within {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.05);
}

/* Evitar el color amarillo de autofill de Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f1f3f5 inset !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group:focus-within input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding-right: 0.5rem;
    font-size: 1.1rem;
}

.form-control {
    background: transparent;
    border: none;
    padding: 0.8rem 0;
    font-weight: 500;
    color: var(--primary-color);
    box-shadow: none !important;
}

.form-control::placeholder {
    color: #adb5bd;
}

.btn-login {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 62, 80, 0.2);
}

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

.login-footer-links {
    text-align: center;
    margin-top: 2rem;
}

.login-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer-links a:hover {
    color: var(--primary-color);
}

#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}
