/* ====== Modern Login Override (Bootstrap 3 + AdminLTE v2 friendly) ====== */

:root{
  --glass: rgba(255,255,255,.78);
  --border: rgba(255,255,255,.35);
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primaryHover: #1d4ed8;
  --ring: rgba(37,99,235,.22);
}

html, body{
  height: 100%;
}

body.login-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
  background-size: cover !important;
  position: relative;
  color: var(--text);
}

/* Overlay suave para que el fondo no compita */
body.login-page::before{
  content:"";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.30), rgba(0,0,0,.35));
  pointer-events: none;
}

.login-box{
  position: relative;
  width: 420px;
  max-width: 100%;
  margin: 0;
}

.login-logo img{
  height: 64px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.login-box-body{
  background: var(--glass) !important;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  padding: 26px 22px;
  backdrop-filter: blur(10px);
}

.login-box-msg{
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

/* Inputs */
.form-control{
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: none;
  padding-left: 42px; /* deja espacio al icono */
  transition: .18s ease;
}

.has-feedback .form-control-feedback{
  top: 6px;
  left: 10px;
  right: auto;
  color: rgba(15,23,42,.45);
}

.form-control:focus{
  border-color: rgba(37,99,235,.65);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Botón */
.btn.btn-primary.btn-flat{
  border-radius: 12px;
  height: 44px;
  border: 0;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  box-shadow: 0 14px 26px rgba(37,99,235,.28);
  font-weight: 700;
  letter-spacing: .2px;
  transition: .18s ease;
}

.btn.btn-primary.btn-flat:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primaryHover), #0284c7);
}

.btn.btn-primary.btn-flat:active{
  transform: translateY(0px);
}

/* Links */
.login-box-body a{
  color: rgba(37,99,235,.95);
  font-weight: 600;
  text-decoration: none;
}

.login-box-body a:hover{
  text-decoration: underline;
}

/* Mensajes flash */
.text-danger, .text-success{
  font-weight: 700;
  margin: 8px 0 10px;
}

/* Checkbox alineado y limpio (iCheck) */
.icheckbox_square-blue, .iradio_square-blue{
  transform: scale(1.05);
}

/* Tabla demo: más “clean” */
.table.table-bordered{
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  overflow: hidden;
}

.table.table-bordered td{
  border-color: rgba(15,23,42,.08) !important;
}