
:root {
    --primary-color: #4361ee;
    --hover-color: #3a56d4;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-radius: 10px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding: 20px;
    margin: 0;
}

.login-container {
    max-width: 420px;
    width: 100%;
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 280px;
    transition: transform 0.5s ease;
    margin-bottom: -70px;
    margin-top: -20px;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.form-floating {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-floating label {
    color: #6c757d;
}

.form-control {
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 48px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    color: #6c757d;
    font-size: 1.25rem;
}

button.input-group-text {
    border-radius: 0 8px 8px 0;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-left: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.35);
}

.connection-row {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.connection-row label {
    margin-right: 1rem;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--dark-text);
}

.form-select {
    flex-grow: 1;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 50px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

.login-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.spinner-container {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

.spinner-container.active {
    display: flex;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container {
    animation: fadeIn 0.5s ease forwards;
}

/* Media queries */
@media (max-width: 576px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .form-control {
        height: 48px;
    }
    
    .connection-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .connection-row label {
        margin-bottom: 0.5rem;
    }
    
    .form-select {
        width: 100%;
    }

    .logo-container img {
        max-width: 250px;
        transition: transform 0.5s ease;
        margin-bottom: -90px;
        margin-top: -40px;
    }
}