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

body {
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
}

.login-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #03045e 0%, #0077b6 55%, #00b4d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(3,4,94,.35);
  animation: slideUp .4s ease;
}

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

/* LOGO */
.login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.login-icono {
  width: 64px;
  height: 64px;
  background: #03045e;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(3,4,94,.3);
}

.login-logo h1 {
  font-size: 1.25em;
  color: #03045e;
  font-weight: 800;
  margin-bottom: 4px;
}

.login-logo p {
  font-size: 0.82em;
  color: #94a3b8;
}

/* ERROR */
.login-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.84em;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: shake .3s ease;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* CAMPOS */
.login-campo {
  margin-bottom: 16px;
}

.login-campo label {
  display: block;
  font-size: 0.78em;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 6px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap > i:first-child {
  position: absolute;
  left: 13px;
  color: #94a3b8;
  font-size: 0.88em;
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  padding: 11px 42px 11px 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.92em;
  color: #1e293b;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-family: inherit;
}

.login-input-wrap input:focus {
  border-color: #0077b6;
  box-shadow: 0 0 0 3px rgba(0,119,182,.15);
}

/* boton ver contraseña */
.btn-ver-pass {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.9em;
  padding: 4px;
  transition: color .15s;
}

.btn-ver-pass:hover { color: #0077b6; }

/* BOTON LOGIN */
.login-btn {
  width: 100%;
  padding: 13px;
  background: #03045e;
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  transition: all .2s;
  letter-spacing: .3px;
}

.login-btn:hover {
  background: #020344;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(3,4,94,.35);
}

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

/* VOLVER */
.login-volver {
  text-align: center;
  margin-top: 22px;
}

.login-volver a {
  font-size: 0.82em;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}

.login-volver a:hover { color: #0077b6; }

/* RESPONSIVE */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 22px;
  }
}