/* ==========================================================
   login.css
   Estilos de la pantalla de inicio de sesión.
   ========================================================== */

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

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #16294B 0%, #1F3864 55%, #2E4C82 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-title { font-weight: 800; font-size: 16px; color: var(--navy-dark); }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.login-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.login-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #FCFDFE;
}

.input:focus {
  outline: 2px solid var(--navy-light);
  outline-offset: 1px;
}

.btn {
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover { opacity: 0.92; }

.login-btn {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
}

.alert-box {
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12px;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.alert-error { background: #FDECEA; border: 1px solid #F5C2BC; color: #9C2C1C; }
.alert-success { background: #E9F7EF; border: 1px solid #BEE6CE; color: #1F6A41; }
.alert-warning { background: #FDF3E7; border: 1px solid #F3DDB3; color: #8A611A; }

.login-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
}
