:root{
  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --text: #0f172a;
  --muted: rgba(15,23,42,.68);
  --border: rgba(15,23,42,.10);
}

/* Base */
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color: var(--text);
  background: #f6f7fb;
}

/* Navbar clean */
.navbar{
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}
.navbar .navbar-brand{ letter-spacing: .2px; }
.container{ max-width: 1140px; }

/* Buttons */
.btn{ border-radius: 14px; }
.btn-primary{
  border: 0;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #ec4899 100%);
  box-shadow: 0 10px 22px rgba(37,99,235,.25);
}
.btn-primary:hover{ filter: brightness(.98); }

/* Cards */
.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Auth modern hero */
.auth-hero{
  min-height: calc(100vh - 86px);
  display:flex;
  align-items:center;
  padding: 28px 0;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(1100px 700px at 90% 15%, rgba(236,72,153,.16), transparent 60%),
    radial-gradient(900px 600px at 60% 90%, rgba(37,99,235,.16), transparent 60%),
    linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
}

.auth-shell{
  width: 100%;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: stretch;
}

.auth-card{
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.auth-brand{
  display:flex;
  gap: 14px;
  align-items:center;
}

.logo-badge{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #ec4899 100%);
  box-shadow: 0 12px 28px rgba(124,58,237,.25);
}

.auth-title{
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.auth-subtitle{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.form-control{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
}
.form-control:focus{
  box-shadow: 0 0 0 .25rem rgba(124,58,237,.18);
  border-color: rgba(124,58,237,.35);
}

.form-hint{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.auth-footer{
  font-size: 13px;
  color: var(--muted);
}
.auth-footer a{
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}
.auth-footer a:hover{ text-decoration: underline; }

/* Right side panel */
.auth-side{
  height: 100%;
}
.side-card{
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(700px 420px at 20% 30%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #0ea5e9 0%, #7c3aed 55%, #ec4899 100%);
  display:flex;
  flex-direction: column;
  justify-content: space-between;
}
.side-title{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .2px;
}
.side-text{
  opacity: .92;
  font-size: 13px;
  margin-top: 10px;
  max-width: 420px;
}
.side-badges{ margin-top: 14px; display:flex; flex-wrap:wrap; gap: 10px; }
.pill{
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
}

/* Existing editor helpers (keep) */
.sidebar{ position:sticky; top:16px; }
.canvas-wrap{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(16,24,40,.08);
  overflow:hidden;
}
.thumb{
  width: 76px; height: 100px; border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background:#fff;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.thumb.active{ outline: 3px solid rgba(13,110,253,.35); }
.photo-tile{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  overflow:hidden;
  cursor:grab;
}
.photo-tile img{ width:100%; height:110px; object-fit:cover; display:block; }
.panel-title{ font-weight:800; letter-spacing:.2px; }
.small-muted{ font-size: 12px; color: rgba(0,0,0,.55); }

/* Responsive */
@media (max-width: 991px){
  .auth-shell{ grid-template-columns: 1fr; }
  .auth-card{ padding: 18px; }
}
