/* HostPanel Pro – Login simple y limpio */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body, html { height: 100%; }

#hp-auth-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.hp-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;  /* sin fondo propio — usa el del tema */
}

.hp-login-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  padding: 36px 32px;
  width: 100%;
  max-width: 380px;
}

.hp-login-logo {
  text-align: center;
  margin-bottom: 24px;
}
.hp-login-brand {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.01em;
}
.hp-login-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 3px;
}

/* Tabs */
.hp-login-tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 9px;
  padding: 3px;
  margin-bottom: 22px;
}
.hp-login-tab {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.hp-login-tab.active {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* Fields */
.hp-lf { margin-bottom: 14px; }
.hp-lf label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.hp-lf input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hp-lf input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.hp-lf input::placeholder { color: #cbd5e1; }

/* Password wrap */
.hp-pw-wrap { position: relative; }
.hp-pw-wrap input { padding-right: 38px; }
.hp-pw-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8; padding: 4px;
  display: flex; align-items: center;
}
.hp-pw-eye:hover { color: #475569; }
.hp-pw-eye svg { width: 15px; height: 15px; }

/* Remember row */
.hp-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; font-size: 12.5px;
}
.hp-remember { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #475569; }
.hp-remember input { width: auto; margin: 0; cursor: pointer; }
.hp-forgot { color: #2563eb; text-decoration: none; font-size: 12.5px; }
.hp-forgot:hover { text-decoration: underline; }

/* Strength */
.hp-strength { display: flex; gap: 4px; align-items: center; margin-top: 6px; }
.hp-s-bar { flex: 1; height: 3px; border-radius: 99px; background: #e2e8f0; transition: background .2s; }
.hp-s-bar.weak   { background: #ef4444; }
.hp-s-bar.medium { background: #f59e0b; }
.hp-s-bar.strong { background: #22c55e; }
.hp-s-lbl { font-size: 10px; color: #94a3b8; min-width: 40px; text-align: right; }

/* Submit */
.hp-submit {
  width: 100%;
  padding: 11px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .1s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hp-submit:hover { background: #1d4ed8; transform: translateY(-1px); }
.hp-submit:active { transform: none; }
.hp-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.hp-spin {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Message */
.hp-msg {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.hp-msg-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.hp-msg-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.hp-msg-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.hp-msg svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Footer */
.hp-login-footer {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.hp-login-footer a { color: #2563eb; text-decoration: none; }
.hp-login-footer a:hover { text-decoration: underline; }

/* Forgot view */
.hp-back-btn {
  background: none; border: none; cursor: pointer; color: #64748b;
  font-size: 12.5px; font-family: inherit; display: flex; align-items: center; gap: 5px;
  margin-bottom: 18px; padding: 0;
}
.hp-back-btn:hover { color: #0f172a; }

/* Responsive */
@media (max-width: 420px) {
  .hp-login-box { padding: 28px 20px; }
}
