/* ── ROOT ─────────────────────────────────────────────────────────── */
.lp-root {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #08101e 0%, #1F3155 55%, #14223D 100%);
  font-family: 'Inter', system-ui, sans-serif;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* subtle radial glow behind card */
.lp-root::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 169, 60, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ── CARD ─────────────────────────────────────────────────────────── */
.lp-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 36px 36px 28px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 40px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(228, 169, 60, 0.06);
}

/* ── LOGO ROW ─────────────────────────────────────────────────────── */
.lp-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.lp-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  color: #14223D;
  background: linear-gradient(140deg, #E4A93C, #C8902E);
  box-shadow: 0 4px 16px rgba(228, 169, 60, 0.45);
  flex-shrink: 0;
}

.lp-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.lp-brand-name sup {
  font-size: 10px;
  font-weight: 600;
  vertical-align: super;
  color: rgba(255, 255, 255, 0.7);
}

.lp-brand-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── TAGLINE ──────────────────────────────────────────────────────── */
.lp-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
  font-weight: 400;
}

/* ── FORM ─────────────────────────────────────────────────────────── */
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.lp-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.lp-input:focus {
  border-color: rgba(228, 169, 60, 0.6);
  box-shadow: 0 0 0 3px rgba(228, 169, 60, 0.12);
}

.lp-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* password wrapper */
.lp-pw-wrap {
  position: relative;
}

.lp-pw-wrap .lp-input {
  padding-right: 44px;
}

.lp-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px;
  line-height: 1;
  transition: color 0.12s;
}

.lp-eye:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── ERROR ────────────────────────────────────────────────────────── */
.lp-error {
  font-size: 12px;
  color: #FCA5A5;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
}

/* ── SUBMIT BUTTON ────────────────────────────────────────────────── */
.lp-submit {
  height: 50px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #14223D;
  background: linear-gradient(135deg, #E4A93C 0%, #C8902E 100%);
  box-shadow: 0 2px 16px rgba(228, 169, 60, 0.4);
  transition: all 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.lp-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #EDBB55 0%, #D4A040 100%);
  box-shadow: 0 4px 24px rgba(228, 169, 60, 0.6);
  transform: translateY(-1px);
}

.lp-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(228, 169, 60, 0.3);
}

.lp-submit:disabled {
  background: rgba(228, 169, 60, 0.25);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  cursor: not-allowed;
}

/* ── FOOTER ───────────────────────────────────────────────────────── */
.lp-footer {
  margin-top: 24px;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}
/* Full-viewport shell that hosts the injected HTML dashboard */
.db-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.db-container {
  width: 100%;
  height: 100%;
  /* Mirror the original `body { display: flex }` so sidebar + main sit side-by-side */
  display: flex;
  overflow: hidden;
}

/* ── Loading screen ── */
.db-loader {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(145deg, #08101e 0%, #1F3155 55%, #14223D 100%);
}

.db-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(228, 169, 60, 0.2);
  border-top-color: #E4A93C;
  border-radius: 50%;
  animation: db-spin 0.75s linear infinite;
}

@keyframes db-spin {
  to { transform: rotate(360deg); }
}

.db-loader-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #root {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
