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

body.login-body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1A2E5A 0%, #1E5FAD 55%, #2E9BDD 100%);
  min-height: 100vh;
  align-items: flex-start;
  padding-top: 40px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative;
  overflow-x: hidden; overflow-y: auto;
}
body.login-body::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  top: -200px; right: -150px; pointer-events: none;
  overflow: hidden;
}
body.login-body::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -150px; left: -100px; pointer-events: none;
  overflow: hidden;
}

.login-wrap { width: 100%; max-width: 440px; position: relative; z-index: 1; }

.login-card {
  background: #ffffff; border-radius: 24px;
  padding: 40px 40px 34px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.1);
}

/* ── LOGO: ícono en recuadro + texto ── */
.login-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.login-logo-box {
  width: 72px; height: 72px;
  background: #fff;
  border: 1px solid #E8EAF0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(26,46,90,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 8px;
}

.login-logo-box img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.login-logo-text { display: flex; flex-direction: column; }

.login-appname {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px; font-weight: 700;
  color: #1A2E5A; line-height: 1.1;
  letter-spacing: -0.4px;
}

.login-tagline {
  font-size: 11px; font-weight: 500;
  color: #9099AD; letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 5px;
}

/* ── TÍTULOS ── */
.login-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 700;
  color: #1A2E5A; margin-bottom: 6px;
}
.login-subtitle { font-size: 14px; color: #9099AD; margin-bottom: 28px; line-height: 1.5; }

/* ── ALERTA ── */
.alert { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; }
.alert-danger { background: #FDE8E8; color: #a52d2d; border-left: 3px solid #D63B3B; }

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 600; color: #2D3344; }
.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #9099AD; font-size: 18px; pointer-events: none;
}
.form-control {
  width: 100%; border: 1.5px solid #E8EAF0; border-radius: 12px;
  padding: 14px 14px 14px 44px; font-size: 14px;
  font-family: 'Inter', sans-serif; color: #2D3344;
  background: #F4F6FA; transition: all 0.15s; outline: none;
}
.form-control:focus {
  border-color: #2E9BDD; background: #fff;
  box-shadow: 0 0 0 3px rgba(46,155,221,0.12);
}
.form-control::placeholder { color: #B0B8C8; }
.input-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #9099AD; font-size: 18px; padding: 2px; display: flex; align-items: center;
}
.input-eye:hover { color: #5C657A; }

/* ── BOTÓN ── */
.btn-login {
  width: 100%; background: #1E72C8;
  color: #fff; border: none; border-radius: 12px;
  padding: 16px; font-size: 16px; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(30,114,200,0.35);
  letter-spacing: 0.01em;
}
.btn-login:hover { background: #1A5FAD; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,95,173,0.45); }
.btn-login:active { transform: translateY(0); }
.btn-login i { font-size: 20px; }

/* ── FOOTER ── */
.login-footer {
  text-align: center; font-size: 12px; color: #B0B8C8;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid #EEF0F4;
}

@media (max-width: 480px) {
  .login-card { padding: 30px 22px 26px; border-radius: 18px; }
  .login-appname { font-size: 22px; }
  .login-logo-box { width: 60px; height: 60px; border-radius: 13px; }
  body.login-body::before,
  body.login-body::after { display: none; }
  body.login-body { overflow: hidden; }
  .login-wrap { max-width: 100%; padding: 0 16px; }
}
