body {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2a4a 50%, #0a2240 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

.contenedor {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.formInicioSesion {
    width: 90%;
    height: auto;
    padding: 2rem 1.75rem;
    border-radius: 16px;
    background-color: rgba(13, 27, 42, 0.82) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeInDown 0.45s ease both;
    margin-top: 0;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo {
    margin-top: 0;
    padding: 0.5rem 1rem 1.25rem 1rem;
    margin-bottom: 1.25rem;
    background-color: transparent;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo > img {
    width: 55%;
    max-width: 220px;
    filter: drop-shadow(0 2px 8px rgba(0, 120, 255, 0.25));
    transition: filter 0.3s ease;
}

.logo > img:hover {
    filter: drop-shadow(0 4px 14px rgba(0, 120, 255, 0.45));
}

.lbls {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    display: block;
}

.formInicioSesion .form-control {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.formInicioSesion .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.formInicioSesion .form-control:focus {
    background-color: rgba(255, 255, 255, 0.11);
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.22);
    color: #ffffff;
    outline: none;
}

.formInicioSesion .form-control:-webkit-autofill,
.formInicioSesion .form-control:-webkit-autofill:hover,
.formInicioSesion .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(13, 27, 60, 0.95) inset;
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
}

.formInicioSesion .btn-primary {
    background: linear-gradient(135deg, #1a6dc9 0%, #0a52a8 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 14px rgba(10, 82, 168, 0.4);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.formInicioSesion .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2278d8 0%, #1460c0 100%);
    box-shadow: 0 6px 20px rgba(10, 82, 168, 0.55);
    transform: translateY(-1px);
}

.formInicioSesion .btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(10, 82, 168, 0.4);
}

.formInicioSesion .btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.formInicioSesion .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Chosen.js dentro del login */
.formInicioSesion .chosen-container .chosen-single {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    box-shadow: none !important;
    height: 32px;
    line-height: 32px;
    padding: 0 0.85rem;
}

.formInicioSesion .chosen-container .chosen-single div b {
    filter: invert(1) brightness(2);
}

.formInicioSesion .chosen-container .chosen-drop {
    background: #1a2a45 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 0 0 8px 8px !important;
}

.formInicioSesion .chosen-container .chosen-results li {
    color: rgba(255, 255, 255, 0.85) !important;
}

.formInicioSesion .chosen-container .chosen-results li.highlighted {
    background: linear-gradient(135deg, #1a6dc9, #0a52a8) !important;
    color: #ffffff !important;
}

@media only screen and (max-width: 600px) {
    .formInicioSesion { width: 94%; padding: 1.5rem 1.25rem; }
    .logo > img { width: 65%; }
}

@media only screen and (min-width: 768px) {
    .formInicioSesion { width: 50%; }
}

@media only screen and (min-width: 992px) {
    .formInicioSesion { width: 40%; }
}

@media only screen and (min-width: 1200px) {
    .formInicioSesion { width: 30%; }
}
