/* mohr sign-in page — the portal's design system laid over Frappe's /login.
   Only appearance changes here; Frappe's markup, ids and login.js are kept. */
.mx-login {
  --ink: #1d1b2e; --muted: #6f6c80; --faint: #8a879a;
  --bg: #f4f3ef; --line: #eceae3; --field: #e0ddd6;
  --violet: #5b50c7; --violet-deep: #4a41ad; --violet-soft: #eeecfa;
  --violet-grad: linear-gradient(120deg, #5b50c7, #7a63e2);
  --sidebar: #201d35; --sidebar-muted: #b4aed3;
  --red: #c0504d; --red-soft: #fdeaea; --green: #1f9a6d; --green-soft: #e5f5ee;
  position: fixed; inset: 0; z-index: 5; overflow-y: auto;
  display: grid; grid-template-columns: minmax(400px, 46%) 1fr;
  background: var(--bg); color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
}

/* ---- brand panel ---- */
.mx-panel { position: relative; overflow: hidden; background: var(--sidebar); color: #fff; padding: 40px 52px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100vh; }
.mx-panel > * { position: relative; }
.mx-sky { position: absolute !important; inset: 0; pointer-events: none; }
.mx-sky i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: mx-drift 18s ease-in-out infinite alternate; }
.mx-sky .b1 { width: 420px; height: 420px; right: -140px; top: -120px; background: #7a63e2; }
.mx-sky .b2 { width: 360px; height: 360px; left: -150px; bottom: -110px; background: #2a8f8a; opacity: 0.4; animation-delay: -6s; }
.mx-sky .b3 { width: 220px; height: 220px; right: 18%; bottom: 22%; background: #5b50c7; opacity: 0.35; animation-delay: -12s; }
@keyframes mx-drift { to { transform: translate(28px, 22px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .mx-sky i { animation: none; } }

.mx-brand { display: flex; align-items: center; gap: 11px; }
.mx-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #6f5fe0, #5b50c7); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; box-shadow: 0 6px 16px rgba(91,80,199,0.45); }
.mx-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 25px; letter-spacing: -0.03em; color: #fff; }
.mx-name span, .mx-pitch h1 span { color: #8f7ff0; }

.mx-pitch h1 { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 16px; color: #fff; }
.mx-pitch p { color: var(--sidebar-muted); font-size: 15.5px; line-height: 1.6; max-width: 440px; margin: 0 0 28px; }
.mx-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 26px; }
.mx-feats li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: #e8e5f7; }
.mx-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #c9c2f4; flex-shrink: 0; }

.mx-foot { display: flex; align-items: center; gap: 12px; color: var(--sidebar-muted); font-size: 12.5px; }
.mx-logo { background: #fff; border-radius: 9px; padding: 3px 8px; display: inline-flex; }
.mx-logo img { display: block; height: 26px; width: auto; }

/* ---- form side ---- */
.mx-form { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; min-height: 100vh; }
.mx-form > div:not(.mx-brand) { width: 100%; }
.mx-brand-sm { display: none; margin-bottom: 22px; }
.mx-brand-sm .mx-name { color: var(--ink); }
.mx-help { margin: 22px 0 0; max-width: 420px; text-align: center; font-size: 12.5px; color: var(--faint); }
.mx-help a { color: var(--violet); font-weight: 600; }

.mx-login section .page-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 36px rgba(20,18,40,0.08), 0 1px 3px rgba(20,18,40,0.05); padding: 34px 32px 30px; max-width: 420px; min-height: 0; gap: 24px; }
.mx-login .app-logo { display: none; }
.mx-login .page-card-head { gap: 0; }
.mx-login .page-card-head h4 { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.mx-login .page-card-subtitle { color: var(--muted); font-size: 14px; }
.mx-login form.form-signin { gap: 22px; }
.mx-login .page-card-body { gap: 16px; }
.mx-login .form-group label { color: var(--muted); font-size: 13px; font-weight: 600; }
.mx-login .email-field, .mx-login .password-field { position: relative; width: 100%; }
.mx-login section .page-card .page-card-body input.form-control { height: auto; width: 100%; padding: 11px 14px; border: 1px solid var(--field); border-radius: 12px; background: #fff; color: var(--ink); font-family: inherit; font-size: 14.5px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.mx-login section .page-card .page-card-body .password-field input.form-control { padding-right: 42px; }
.mx-login section .page-card .page-card-body input.form-control::placeholder { color: #b3b0c0; }
.mx-login section .page-card .page-card-body input.form-control:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); background: #fff; }
.mx-login .toggle-password { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); cursor: pointer; color: var(--faint); }
.mx-login section .page-card .invalid input.form-control { border-color: var(--red); }
.mx-login section .page-card .invalid input.form-control:focus { box-shadow: 0 0 0 3px var(--red-soft); }
.mx-login .field-error { color: var(--red); font-size: 12.5px; }
.mx-login a[href="#forgot"], .mx-login .sign-up-message a, .mx-login .btn-resend-link { color: var(--violet); font-weight: 600; font-size: 13px; }
.mx-login a[href="#forgot"]:hover, .mx-login .sign-up-message a:hover { color: var(--violet-deep); }

.mx-login .es-button { height: 46px; border-radius: 12px; font-family: inherit; font-size: 14.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: #fff; color: var(--ink); border: 1px solid var(--field); box-shadow: none; transition: transform .12s, box-shadow .15s, background .15s; }
.mx-login .es-button:hover { background: #faf9f6; color: var(--ink); }
.mx-login .es-button[data-variant="solid"] { background: var(--violet-grad); color: #fff; border: 0; box-shadow: 0 8px 18px rgba(91,80,199,0.32); }
.mx-login .es-button[data-variant="solid"]:hover { box-shadow: 0 10px 22px rgba(91,80,199,0.42); transform: translateY(-1px); }
.mx-login .es-button[data-variant="solid"]:active { transform: none; }
.mx-login .es-button[disabled] { opacity: 0.55; transform: none; box-shadow: none; }
.mx-login .es-button:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.mx-login .es-alert { border-radius: 12px; font-size: 13px; }
.mx-login .es-alert[data-theme="red"] { background: var(--red-soft); color: var(--red); }
.mx-login .es-alert[data-theme="green"] { background: var(--green-soft); color: var(--green); }

/* two-factor step (login.js rebuilds the card's contents) */
.mx-login #otp_div, .mx-login #qr_info { color: var(--muted); font-size: 13.5px; }

/* reCAPTCHA checkbox between the password field and the sign-in button */
.mx-login .mx-captcha { display: flex; justify-content: center; min-height: 78px; }
@media (max-width: 360px) {
  /* the widget's iframe is a fixed 304px; shrink it on very narrow phones */
  .mx-login .mx-captcha { transform: scale(0.88); transform-origin: center; }
}

/* ---- narrow screens: the panel gives way to a compact brand row ---- */
@media (max-width: 900px) {
  .mx-login { grid-template-columns: 1fr; }
  .mx-panel { display: none; }
  .mx-brand-sm { display: flex; }
  .mx-form { justify-content: flex-start; padding: 40px 16px 32px; }
  .mx-login section .page-card { padding: 28px 22px 24px; border-radius: 18px; min-height: 0; }
}
