/* Log masuk & daftar Kedai: kad terbelah (gambar + borang), gaya landing page */
:root {
  --cream: #FBF6EE; --grid: rgba(43, 59, 209, .07);
  --ink: #14183A; --ink-2: #454866; --muted: #8B8A9C; --line: #E6E3DC;
  --blue: #2B3BD1; --blue-l: #E4E7FF; --orange: #FF7A45; --orange-d: #EE6532; --yellow: #FBE7A8;
  --serif: 'Instrument Serif', Georgia, serif; --hand: 'Caveat', cursive; --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--cream);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.shell { width: min(1180px, 100%); min-height: min(760px, calc(100vh - 48px)); display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 30px 80px rgba(20,24,58,.14); }

/* Panel kiri */
.side { position: relative; color: #fff; display: flex; flex-direction: column; padding: 30px 36px 28px; overflow: hidden; isolation: isolate; }
.side > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,24,58,.15) 0%, rgba(20,24,58,.35) 40%, rgba(20,24,58,.88) 100%); }
.side .awning { position: absolute; inset: 0 0 auto; height: 30px; background: repeating-linear-gradient(90deg, var(--orange) 0 40px, #fff 40px 80px);
  -webkit-mask: radial-gradient(20px at 20px 10px, #000 98%, transparent) 0 0 / 40px 100% repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 10px no-repeat;
          mask: radial-gradient(20px at 20px 10px, #000 98%, transparent) 0 0 / 40px 100% repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 10px no-repeat; }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 800 21px var(--sans); letter-spacing: -.04em; text-decoration: none; margin-top: 22px; }
.logo img { width: 30px; height: 30px; background: #fff; border-radius: 9px; padding: 4px; }
.logo small { font: inherit; font-weight: 700; color: #FFC2A8; }

  /* Logo E: "kedai" serif, titik huruf i = kanopi oren */
.wm { display: inline-flex; align-items: baseline; font: 400 34px/1 'Instrument Serif', Georgia, serif; letter-spacing: -.01em; text-decoration: none; color: inherit; }
.wm .ii { position: relative; display: inline-block; }
.wm .ii img { position: absolute; left: 32%; top: .08em; width: .42em; height: .27em; transform: translateX(-50%); max-width: none; }
.side .wm { margin-top: 24px; font-size: 38px; align-self: flex-start; }
.side .copy { margin-top: auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.side h1 { font: 400 clamp(40px, 4.4vw, 60px)/1.02 var(--serif); letter-spacing: -.02em; margin: 18px 0 12px; }
.side h1 em { color: #FFC2A8; }
.side p { margin: 0; color: rgba(255,255,255,.82); max-width: 430px; font-size: 16px; }
.side .trust { display: flex; align-items: center; gap: 8px; margin-top: 30px; font-size: 13px; color: rgba(255,255,255,.75); }
.side .trust svg { width: 16px; height: 16px; flex: none; }
.note { position: absolute; right: 30px; top: 90px; width: 180px; padding: 14px 16px; background: var(--yellow); color: #2e2a1e; font: 600 21px/1.12 var(--hand); transform: rotate(4deg); box-shadow: 0 12px 28px rgba(0,0,0,.25); animation: sway 7s ease-in-out infinite; }
.note small { display: block; margin-top: 6px; font: 600 12px var(--sans); color: rgba(0,0,0,.5); }
@keyframes sway { 50% { transform: rotate(2deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .note { animation: none; } }

/* Panel kanan */
.main { display: grid; place-items: center; padding: 40px 28px; background: #fff; position: relative; }
.main .kanopi { position: absolute; top: 26px; right: 30px; width: 70px; filter: drop-shadow(0 8px 10px rgba(60,40,10,.12)); }
.form { width: min(400px, 100%); }
.form h2 { font: 400 40px/1.05 var(--serif); letter-spacing: -.02em; margin: 0 0 6px; text-align: center; }
.form .sub { margin: 0 0 24px; text-align: center; color: var(--ink-2); }
.google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font: 700 15px var(--sans); color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.google:hover { background: #FAF8F4; border-color: #D9D5CC; }
.google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field .row { display: flex; justify-content: space-between; align-items: baseline; }
label { font-weight: 700; font-size: 13.5px; }
.field a { font-size: 13px; color: var(--blue); text-decoration: none; font-weight: 600; }
.field a:hover { text-decoration: underline; }
input[type=text], input[type=email], input[type=password], input[type=tel], select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: 15px var(--sans); color: var(--ink); background: #FDFCFA; transition: border-color .15s, box-shadow .15s, background .15s; }
input::placeholder { color: #B3B1BE; }
input:focus, select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(43,59,209,.12); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 8px; top: 8px; height: 32px; padding: 0 10px; border: 0; background: none; color: var(--muted); font: 700 12.5px var(--sans); cursor: pointer; border-radius: 8px; }
.pw button:hover { background: #F4F2EE; color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { margin: -4px 0 14px; color: var(--muted); font-size: 12.5px; }
.slug { display: flex; align-items: center; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #FDFCFA; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.slug:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43,59,209,.12); background: #fff; }
.slug input { border: 0; box-shadow: none !important; background: transparent; height: 46px; flex: 1; min-width: 0; padding-right: 4px; }
.slug span { padding: 0 14px 0 2px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.preview { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--blue-l); color: var(--blue); font-size: 13px; font-weight: 600; }
.preview b { color: var(--ink); }
.submit { width: 100%; height: 52px; margin-top: 6px; border: 0; border-radius: 12px; background: var(--orange); color: #fff; font: 800 14px var(--sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 10px 24px rgba(238,101,50,.28); transition: background .15s, transform .15s; }
.submit:hover { background: var(--orange-d); transform: translateY(-1px); }
.switch { margin: 18px 0 0; text-align: center; color: var(--ink-2); font-size: 14px; }
.switch a { color: var(--blue); font-weight: 700; text-decoration: none; }
.legal { margin: 18px auto 0; max-width: 340px; text-align: center; color: var(--muted); font-size: 12.5px; }
.legal a { color: var(--ink-2); }
.msg { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF4EC; color: #9A3412; font-size: 13px; text-align: center; }
.msg[hidden] { display: none; }

/* Telefon: panel kiri jadi jalur ringkas di atas */
@media (max-width: 860px) {
  body { padding: 0; place-items: stretch; }
  .shell { grid-template-columns: 1fr; border-radius: 0; min-height: 100vh; box-shadow: none; }
  .side { padding: 22px 20px 22px; min-height: 230px; }
  .side h1 { font-size: 36px; margin: 12px 0 6px; }
  .side p, .side .trust, .note { display: none; }
  .main { padding: 30px 20px 40px; place-items: start center; }
  .main .kanopi { display: none; }
  .form h2 { font-size: 34px; }
  .two { grid-template-columns: 1fr; gap: 0; }
}

/* Daftar awal */
select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A7790' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[data-avail] { font-size: 12.5px; font-weight: 700; }
[data-avail].ok { color: #1F7A4D; }
[data-avail].no { color: #B42318; }
.msg.ok { color: #1F7A4D; background: #E3F5EB; }
