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

:root {
  --blue:      #6C5CE7;
  --blue-dark: #4A3BC4;
  --text:      #14132A;
  --muted:     #6E6E85;
  --border:    #E4E4ED;
  --bg:        #F7F7FB;
  --white:     #ffffff;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Layout ── */
.page {
  display: flex;
  min-height: 100vh;
}

/* ── Left panel ── */
.panel-left {
  flex: 1;
  background: var(--white);
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.brand {
  margin-bottom: 72px;
}

.brand-logo-img {
  display: none;
}

/* hero + features centre as one group in the space between brand and footer */
.panel-main {
  margin: auto 0;
  max-width: 640px;
}

.hero {
  margin-bottom: 48px;
}

.hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
}

/* ── Feature list ── */
.features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #F1EFFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.feature-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Dashboard preview (browser-framed screenshot) ── */
.preview-frame {
  display: none;
  margin-top: 44px;
  max-width: 620px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -28px rgba(20,19,42,.25);
  overflow: hidden;
  background: #EDEDF4;
}

.preview-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
}

.preview-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3d3de;
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* only show the preview when there's genuinely room for it */
@media (min-width: 1100px) and (min-height: 1000px) {
  .preview-frame { display: block; }
}

.panel-footer {
  font-size: .75rem;
  color: #d1d5db;
  margin-top: auto;
  padding-top: 48px;
}

.panel-footer a {
  color: #d1d5db;
  text-decoration: none;
}

.panel-footer a:hover { color: var(--muted); }

/* ── Right panel ── */
.panel-right {
  width: 480px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7C5CFF 0%, #4A3BC4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.panel-right::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}

.panel-right::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}

.deco-ring {
  position: absolute;
  bottom: 120px;
  right: 30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 24px solid rgba(255,255,255,.06);
  pointer-events: none;
}

.deco-bar {
  position: absolute;
  top: 60px;
  left: 30px;
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.15);
  pointer-events: none;
  box-shadow: 0 14px 0 rgba(255,255,255,.1), 0 28px 0 rgba(255,255,255,.07);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px -20px rgba(74,59,196,.28);
  position: relative;
  z-index: 1;
}

.login-header {
  margin-bottom: 32px;
}

.login-header h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.login-header p {
  font-size: .85rem;
  color: var(--muted);
}

/* ── Form ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot {
  font-size: .78rem;
  font-weight: 400;
  color: var(--blue);
  text-decoration: none;
}

.forgot:hover { text-decoration: underline; }

.field input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.field input::placeholder { color: #9ca3af; }

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(108,92,231,.18);
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: 4px;
}

.btn-login:hover  { background: var(--blue-dark); }
.btn-login:active { transform: scale(.98); }

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: .82rem;
  margin-bottom: 4px;
}

.login-footer {
  margin-top: 28px;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

.login-footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover { text-decoration: underline; }

/* ── Large screens (iMac etc.) — scale up instead of leaving white space ── */
@media (min-width: 1500px) {
  .panel-left { padding: 72px clamp(80px, 8vw, 150px); }

  .hero h1   { font-size: 3.4rem; margin-bottom: 22px; }
  .hero-sub  { font-size: 1.15rem; max-width: 520px; }
  .hero      { margin-bottom: 60px; }

  .features  { gap: 32px; }
  .feature   { gap: 18px; }
  .feature-icon { width: 46px; height: 46px; border-radius: 12px; }
  .feature-icon svg { width: 23px; height: 23px; }
  .feature-title { font-size: 1.05rem; margin-bottom: 5px; }
  .feature-desc  { font-size: .95rem; }

  .panel-right { width: 38vw; max-width: 720px; padding: 40px 64px; }
  .login-card  { max-width: 410px; padding: 48px 42px; }
  .login-header h2 { font-size: 1.8rem; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .page { flex-direction: column; }

  .panel-left {
    padding: 40px 32px 36px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero h1 { font-size: 1.9rem; }

  .features { display: none; }

  .panel-left .brand { margin-bottom: 32px; }
  .panel-footer { display: none; }

  .panel-right {
    width: 100%;
    padding: 40px 24px 56px;
  }
}
