/* ==========================================================
   Log In — Dr Pathik
   All classes start with "li-" so they never clash with your
   existing CSS. Same look as the Sign Up page.
   ========================================================== */

.li-page {
  --li-brown: #7a4b2a;
  --li-brown-d: #5a3419;
  --li-dark: #2f1e11;
  --li-cream: #fffdf9;
  --li-sand: #f3e6d3;
  --li-border: #e6d6bf;
  --li-text: #3a2616;
  --li-muted: #8a7664;
  --li-red: #b3382c;
  --li-green: #2f7a4b;
  --li-font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --li-font-head: "Playfair Display", "Noto Serif Devanagari", Georgia, serif;

  background: var(--li-cream);
  color: var(--li-text);
  font-family: var(--li-font-ui);
  padding: 36px 16px 72px;
  line-height: 1.5;
}
.li-page *, .li-page *::before, .li-page *::after { box-sizing: border-box; }
.li-page [hidden] { display: none !important; }

/* ---------- Two-column shell ---------- */
.li-wrap { max-width: 1060px; margin: 0 auto; }
.li-shell {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  min-height: 640px;
  background: #fff;
  border: 1px solid var(--li-border);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(58, 38, 22, .14);
}

/* ---------- LEFT: brand panel ---------- */
.li-art {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  padding: clamp(28px, 4vw, 48px);
  color: #fff;
  background: radial-gradient(circle at 18% 8%, #7d5434 0%, #3a2616 52%, #241408 100%);
}
.li-art::before { /* dotted texture */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 220, 170, .22) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(160deg, #000 0%, transparent 70%);
}
.li-orb { position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(233, 168, 103, .28); }
.li-orb-1 { width: 380px; height: 380px; right: -150px; top: -110px; box-shadow: inset 0 0 70px rgba(233, 168, 103, .12); }
.li-orb-2 { width: 250px; height: 250px; left: -90px; bottom: -80px; background: radial-gradient(circle, rgba(233, 168, 103, .22), transparent 70%); border-color: rgba(233, 168, 103, .15); }
.li-feather {
  position: absolute; z-index: -1; right: 28px; top: 90px; width: 92px; height: 92px;
  color: rgba(233, 168, 103, .45); transform: rotate(8deg);
  animation: li-drift 9s ease-in-out infinite;
}

.li-brand { display: flex; align-items: center; gap: 12px; }
.li-logo {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #f0c48f;
}
.li-logo svg { width: 22px; height: 22px; }
.li-brand-name { font-family: var(--li-font-head); font-size: 20px; font-weight: 600; letter-spacing: .01em; }

.li-art-copy { max-width: 400px; }
.li-eyebrow { display: inline-block; margin-bottom: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: #e9a867; }
.li-art-copy h2 { margin: 0 0 14px; font-family: var(--li-font-head); font-size: clamp(28px, 3.3vw, 40px); line-height: 1.18; font-weight: 700; }
.li-art-copy h2 em { font-style: italic; color: #f0c48f; }
.li-art-copy p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #ecd9bf; }

/* floating poem card */
.li-poem {
  position: relative; align-self: flex-start; width: min(330px, 100%);
  padding: 20px 22px; border-radius: 18px;
  background: rgba(255, 250, 242, .09);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  transform: rotate(-2.2deg);
  animation: li-float 6.5s ease-in-out infinite;
  margin-bottom: 80px;
}
.li-poem::before { /* second layered card */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 250, 242, .07); border: 1px solid rgba(255, 255, 255, .12);
  transform: translate(14px, 12px) rotate(4deg);
}
.li-poem-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.li-pill { padding: 3px 11px; border-radius: 999px; background: #e9a867; color: #3a2616; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.li-poem-by { font-size: 11.5px; color: #d9c3a6; }
.li-poem h3 { margin: 0 0 8px; font-family: var(--li-font-head); font-size: 21px; font-weight: 600; }
.li-poem p { margin: 0; padding-left: 12px; border-left: 2px solid #e9a867; font-family: Georgia, serif; font-style: italic; font-size: 14.5px; line-height: 1.65; color: #f7ead6; }
.li-poem-meta { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .22); font-size: 12px; color: #d9c3a6; }

.li-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #f3e4cc; }
.li-feats li { display: flex; align-items: center; gap: 10px; }
.li-feats i {
  flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(233, 168, 103, .2); border: 1px solid rgba(233, 168, 103, .5);
  color: #f0c48f; font-style: normal; font-size: 11px; font-weight: 700;
}

@keyframes li-float { 0%, 100% { transform: rotate(-2.2deg) translateY(0); } 50% { transform: rotate(-1.2deg) translateY(-9px); } }
@keyframes li-drift { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(14px); } }

/* ---------- RIGHT: form side ---------- */
.li-side { display: flex; align-items: center; padding: clamp(26px, 4.5vw, 56px); background: #fff; }
.li-side-in { width: 100%; max-width: 410px; margin: 0 auto; }
.li-head { margin-bottom: 24px; }
.li-kicker { display: inline-block; margin-bottom: 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--li-brown); }
.li-head h1 { margin: 0 0 6px; font-family: var(--li-font-head); font-size: clamp(26px, 3.4vw, 34px); color: var(--li-dark); line-height: 1.15; }
.li-head p { margin: 0; font-size: 14px; color: var(--li-muted); }

/* ---------- Method switch ---------- */
.li-modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 20px;
  background: var(--li-sand); border-radius: 12px;
}
.li-mode {
  min-height: 42px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--li-brown-d); cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
}
.li-mode:hover { background: rgba(255, 255, 255, .55); }
.li-mode.is-active { background: #fff; color: var(--li-brown); box-shadow: 0 1px 4px rgba(90, 52, 25, .15); }
.li-mode:focus-visible { outline: 2px solid var(--li-brown); outline-offset: 2px; }

/* ---------- Notice ---------- */
.li-notice {
  margin-bottom: 18px; padding: 12px 14px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.45;
  background: #fbeceA; color: #8a2b21; border: 1px solid #efc6c1;
}
.li-notice.is-warn { background: var(--li-sand); color: var(--li-brown-d); border-color: var(--li-border); }

/* ---------- Form ---------- */
.li-form { display: flex; flex-direction: column; gap: 18px; }
.li-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.li-field label { font-size: 13px; font-weight: 600; color: var(--li-dark); }
.li-field label b { color: var(--li-red); }

.li-page input[type="text"],
.li-page input[type="tel"],
.li-page input[type="password"] {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--li-text);
  background: var(--li-cream);
  border: 1px solid var(--li-border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.li-page input:focus { border-color: var(--li-brown); box-shadow: 0 0 0 3px rgba(122, 75, 42, .14); }
.li-field.li-invalid input { border-color: var(--li-red); }
.li-error { display: block; color: var(--li-red); font-size: 12px; }
.li-error:empty { display: none; }

.li-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* password eye */
.li-pass { position: relative; }
.li-pass input { padding-right: 48px; }
.li-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; background: none; cursor: pointer;
  font-size: 17px; opacity: .6; border-radius: 8px;
}
.li-eye:hover, .li-eye.is-on { opacity: 1; background: var(--li-sand); }

/* remember / forgot */
.li-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: -4px; }
.li-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.li-check input { width: 17px; height: 17px; accent-color: var(--li-brown); }
.li-forgot, .li-foot a { color: var(--li-brown); font-weight: 600; font-size: 13.5px; }
.li-forgot:hover, .li-foot a:hover { text-decoration: underline; }

/* ---------- Mobile + OTP ---------- */
.li-mob-row { display: flex; align-items: stretch; gap: 8px; }
.li-cc {
  display: inline-flex; align-items: center; padding: 0 14px; flex: none;
  background: var(--li-sand); border: 1px solid var(--li-border); border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--li-brown-d);
}
.li-mob-row input { flex: 1; min-width: 0; letter-spacing: .04em; }
.li-mob-row input[readonly] { background: #eef6f0; border-color: #b9d9c4; color: var(--li-green); font-weight: 600; }

.li-btn-sm {
  flex: none; min-height: 44px; padding: 0 18px; white-space: nowrap;
  font: inherit; font-size: 13.5px; font-weight: 600; color: #fff;
  background: var(--li-brown); border: 0; border-radius: 10px; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.li-btn-sm:hover:not([disabled]) { background: var(--li-brown-d); }
.li-btn-sm[disabled] { opacity: .5; cursor: not-allowed; }
.li-btn-sm.is-loading { opacity: .7; pointer-events: none; }

.li-otp-box { padding: 14px; background: var(--li-cream); border: 1px dashed var(--li-brown); border-radius: 12px; }
.li-otp-msg { margin: 0 0 12px; font-size: 13px; color: var(--li-muted); }
.li-otp-msg b { color: var(--li-dark); }
.li-otp-inputs { display: flex; gap: 8px; margin-bottom: 10px; }
.li-page input.li-otp-d {
  flex: 1 1 0; min-width: 0; max-width: 54px; height: 52px; padding: 0;
  text-align: center; font-size: 22px; font-weight: 600; color: var(--li-dark); border-radius: 10px;
}
.li-otp-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.li-link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--li-brown); cursor: pointer; }
.li-link:hover:not([disabled]) { text-decoration: underline; }
.li-link[disabled] { color: var(--li-muted); font-weight: 400; cursor: default; }

/* ---------- Buttons ---------- */
.li-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; padding: 0 24px;
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .1s, background .15s, opacity .15s;
}
.li-btn:active:not([disabled]) { transform: translateY(1px); }
.li-btn-primary { background: var(--li-brown); color: #fff; box-shadow: 0 6px 16px rgba(122, 75, 42, .28); }
.li-btn-primary:hover:not([disabled]) { background: var(--li-brown-d); }
.li-btn-ghost { background: #fff; color: var(--li-brown); border-color: var(--li-border); }
.li-btn-ghost:hover { border-color: var(--li-brown); }
.li-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.li-spin {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: li-rot .7s linear infinite;
}
.li-btn.is-loading .li-spin { display: inline-block; }
@keyframes li-rot { to { transform: rotate(360deg); } }

.li-foot { margin: 24px 0 0; padding-top: 18px; border-top: 1px dashed var(--li-border); text-align: center; font-size: 14px; color: var(--li-muted); }

/* ---------- Success ---------- */
.li-success { text-align: center; padding: 18px 4px 4px; }
.li-success h2 { font-family: var(--li-font-head); margin: 14px 0 6px; color: var(--li-dark); }
.li-success p { margin: 0 auto 18px; color: var(--li-muted); font-size: 14px; }
.li-success .li-demo-note { font-size: 12.5px; color: var(--li-brown); }
.li-success .li-btn { width: auto; min-width: 200px; }
.li-tick { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: #e5f3ea; color: var(--li-green); }

/* ---------- Toast ---------- */
.li-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 10000;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px);
  background: var(--li-dark); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13.5px;
  transition: opacity .25s, transform .25s;
}
.li-toast.show { opacity: 1; transform: translate(-50%, 0); }
.li-toast.is-error { background: var(--li-red); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .li-wrap { max-width: 560px; }
  .li-shell { grid-template-columns: 1fr; min-height: 0; }
  .li-art { gap: 16px; padding: 26px 24px 28px; }
  .li-poem, .li-feats, .li-feather { display: none; }
  .li-art-copy h2 { font-size: 26px; margin-bottom: 8px; }
  .li-art-copy p { font-size: 13.5px; }
  .li-side { padding: 28px 24px 32px; }
}
@media (max-width: 480px) {
  .li-page { padding: 16px 12px 48px; }
  .li-shell { border-radius: 20px; }
  .li-art { padding: 22px 20px 24px; }
  .li-side { padding: 24px 18px 28px; }
  .li-success .li-btn { width: 100%; }
}
@media (max-width: 420px) {
  .li-mob-row { flex-wrap: wrap; }
  .li-mob-row input { flex: 1 1 140px; }
  .li-mob-row .li-btn-sm { flex: 1 1 100%; }
  .li-page input.li-otp-d { height: 46px; font-size: 20px; }
  .li-otp-inputs { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .li-page * { transition: none !important; animation: none !important; }
}
