:root {
  --bg: #f7f4f7;
  --bg-soft: #f3eef2;
  --panel: rgba(255, 255, 255, 0.84);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #231f24;
  --muted: #6f6771;
  --line: rgba(62, 42, 60, 0.12);
  --line-strong: rgba(62, 42, 60, 0.18);
  --primary: #b01368;
  --primary-dark: #8f0d55;
  --success: #177d53;
  --danger: #b23a48;
  --shadow: 0 20px 50px rgba(53, 31, 50, 0.12);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(195, 54, 122, 0.12), transparent 36%),
    radial-gradient(circle at right center, rgba(255, 255, 255, 0.75), transparent 24%),
    linear-gradient(180deg, #faf8fa 0%, #f2edf1 100%);
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.page-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.page-glow-left {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -60px;
  background: rgba(201, 74, 138, 0.25);
}
.page-glow-right {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -60px;
  background: rgba(255, 255, 255, 0.55);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.96fr) minmax(340px, 1.04fr);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.auth-panel-form {
  padding: 42px 42px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(255,255,255,0.92) 100%);
}

.auth-panel-visual {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(180deg, #f4f0f3 0%, #ebe7eb 100%);
}

.visual-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.02);
  filter: grayscale(100%) contrast(102%) brightness(1.06);
}
.visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(243,239,243,0.9) 0%, rgba(243,239,243,0.6) 22%, rgba(243,239,243,0.15) 48%, rgba(243,239,243,0.05) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  z-index: 1;
}
.visual-copy {
  position: relative;
  z-index: 2;
  max-width: 360px;
  margin: 0 0 42px 42px;
  padding: 24px 26px;
  border-radius: 22px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 18px 35px rgba(46, 30, 45, 0.12);
}
.visual-copy h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.08;
}
.visual-copy p {
  margin: 0;
  color: #655d67;
  font-size: 0.98rem;
  line-height: 1.7;
}

.brand-row { margin-bottom: 42px; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}
.brand-mark-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cf2b7c 0%, #8e0d56 100%);
  box-shadow: 0 0 0 6px rgba(176, 19, 104, 0.12);
}
.brand-mark-small { margin-bottom: 18px; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-weight: 700;
}
.eyebrow-light { color: var(--primary-dark); }

.auth-copy h1,
.single-title {
  margin: 14px 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.auth-copy p,
.single-text {
  margin: 0;
  max-width: 530px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.demo-credentials {
  margin: 28px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.demo-credentials > div {
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
}
.demo-credentials span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 6px;
}
.demo-credentials strong {
  font-size: 0.95rem;
  word-break: break-word;
}

.auth-form { width: 100%; }
.field-group { margin-bottom: 18px; }
.field-group label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.91rem;
  font-weight: 600;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.text-link {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
}
.text-link:hover { color: var(--primary-dark); }
.back-link { display: inline-block; margin-top: 18px; }

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.input-shell:focus-within {
  border-color: rgba(176, 19, 104, 0.45);
  box-shadow: 0 0 0 4px rgba(176, 19, 104, 0.09);
  transform: translateY(-1px);
}
.input-icon {
  width: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  color: #8e7d89;
  font-weight: 700;
}
.input-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 16px 0 0;
}
.input-shell input::placeholder { color: #aa9ea8; }
.toggle-password {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  padding: 0 18px;
}
.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 24px;
}
.check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}
.check-wrap input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.primary-button,
.secondary-button {
  min-height: 56px;
  border-radius: 16px;
  border: 0;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #c81f79 0%, #9d0f5d 100%);
  box-shadow: 0 16px 30px rgba(176, 19, 104, 0.25);
}
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(176, 19, 104, 0.32);
}
.secondary-button {
  padding: 0 22px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  color: var(--text);
}
.secondary-button:hover { transform: translateY(-1px); }

.error-text,
.form-message {
  display: block;
  min-height: 20px;
  font-size: 0.85rem;
  margin-top: 8px;
}
.error-text,
.error-message { color: var(--danger); }
.success-text { color: var(--success); }

.auth-page-centered {
  display: grid;
  place-items: center;
  padding: 24px;
}
.single-shell {
  width: min(540px, 100%);
  position: relative;
  z-index: 1;
}
.single-card {
  background: var(--panel-strong);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.dashboard-page { padding: 24px; }
.dashboard-header,
.dashboard-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px;
  background: rgba(255,255,255,0.78);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
}
.dashboard-header h1 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
}
.dashboard-shell {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
}
.dashboard-card {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
}
.dashboard-card h2 { margin: 14px 0 10px; font-size: 1.8rem; letter-spacing: -0.03em; }
.dashboard-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.dashboard-card-featured { grid-column: 1 / -1; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.stat-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
}
.stat-item strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.stat-item span { color: var(--muted); font-size: 0.92rem; }
.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .75s ease forwards;
}
.delay-1 { animation-delay: .12s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-panel-visual {
    min-height: 300px;
    order: -1;
  }
  .visual-copy {
    max-width: 320px;
    margin: 0 0 24px 24px;
  }
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-shell,
  .dashboard-header,
  .dashboard-shell {
    width: min(100%, calc(100% - 0px));
  }
  .auth-shell {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
  }
  .auth-panel-form { padding: 24px 20px 28px; }
  .auth-panel-visual { min-height: 240px; }
  .auth-copy h1,
  .single-title { font-size: 2rem; }
  .demo-credentials { grid-template-columns: 1fr; }
  .visual-copy {
    margin: 0 16px 16px;
    padding: 18px;
    max-width: none;
  }
  .single-card,
  .dashboard-card,
  .dashboard-header { padding: 22px 18px; border-radius: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .dashboard-page { padding: 16px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
}
