/* Log in, sign up, forgot and reset pages: bold diagonal background in deep teal, black and amber */
.auth-body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 28px 14px; position: relative; overflow: hidden; background: #08201d; color: #172026; }
.auth-body::before { content: ''; position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 18% 78%, #05100e 0 24vmax, transparent 24.2vmax),
    linear-gradient(118deg, transparent 0 34%, #0f766e 34% 64%, transparent 64%),
    linear-gradient(118deg, transparent 0 62%, #FFBF3F 62% 63.2%, transparent 63.2%),
    linear-gradient(118deg, transparent 0 66%, #0b4f49 66% 100%),
    #08201d; }
.auth-body::after { content: ''; position: fixed; z-index: 0; right: -9vmax; top: -9vmax; width: 30vmax; height: 30vmax; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFBF3F, #e59a12); opacity: .92; }
.auth-card { position: relative; z-index: 1; width: min(440px, 100%); background: var(--surface); border-radius: 16px; padding: 34px 34px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); min-height: 560px; display: flex; flex-direction: column; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.auth-brand .logo { width: 34px; height: 34px; font-size: 1.1rem; border-radius: 10px; }
.auth-card h1 { text-align: center; font-size: 1.45rem; margin: 4px 0 18px; font-family: inherit; }
.auth-card .lead { text-align: center; color: var(--muted); font-size: .9rem; margin: -8px 0 16px; }
.auth-card form { display: flex; flex-direction: column; flex: 1; }
.auth-card label { font-size: .82rem; color: var(--muted); margin: 12px 0 4px; }
.auth-card label:first-of-type { margin-top: 0; }
.auth-card input[type=text], .auth-card input[type=password], .auth-card input[type=tel], .auth-card input[type=email] { height: 46px; border-radius: 8px; border: 1px solid var(--muted); padding: 0 12px; font-size: 16px; background: var(--surface); width: 100%; }
.auth-card input:focus { outline: 2px solid #FFBF3F; outline-offset: 1px; border-color: transparent; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 62px !important; }
.pw-wrap .show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--brand); font-size: .82rem; font-weight: 600; padding: 6px; cursor: pointer; }
.pw-row { display: flex; gap: 8px; } .pw-row input { flex: 1; } .pw-row button { height: 46px; border-radius: 8px; flex: none; }
.auth-go { margin-top: 20px; height: 48px; border: 0; border-radius: 8px; background: #FFBF3F; color: #141414; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.auth-go:hover { filter: brightness(1.05); } .auth-go:disabled { opacity: .6; cursor: default; }
.auth-msg { min-height: 1.3em; margin: 10px 0 0; font-size: .86rem; color: var(--bad); text-align: center; }
.auth-msg.ok { color: var(--good); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: .88rem; flex-wrap: wrap; }
.auth-links a { color: var(--brand); }
.auth-fine { margin: auto 0 0; padding-top: 22px; text-align: center; font-size: .74rem; color: var(--muted); }
.auth-card .check { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink); margin: 14px 0 0; }
.auth-card .check input { width: 16px; height: 16px; flex: none; }
.auth-card .tiny { font-size: .8rem; color: var(--muted); margin: 4px 0 0; } .auth-card .tiny button { border: 0; background: none; color: var(--brand); font: inherit; cursor: pointer; padding: 0 4px; }
@media (max-width: 480px) { .auth-card { padding: 26px 20px 22px; min-height: 0; } .auth-body { padding: 16px 10px; } }

.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--muted); font-size: .8rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-or[hidden], .g-btn[hidden] { display: none; }
.g-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 46px; border: 1px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.g-btn:hover { background: var(--bg); }

/* sign-up and reset: a shorter card with slightly smaller type */
.auth-card.compact { min-height: 0; padding: 22px 28px 20px; width: min(420px, 100%); }
.compact .auth-brand { font-size: 1.1rem; margin-bottom: 8px; } .compact .auth-brand .logo { width: 28px; height: 28px; font-size: .95rem; }
.compact h1 { font-size: 1.2rem; margin: 2px 0 8px; }
.compact .lead { font-size: .8rem; margin: -4px 0 10px; }
.compact label { font-size: .74rem; margin: 8px 0 3px; }
.compact input[type=text], .compact input[type=password], .compact input[type=tel], .compact input[type=email] { height: 38px; font-size: 15px; padding: 0 10px; }
.compact .pw-row button { height: 38px; font-size: .84rem; padding: 0 12px; }
.compact .tiny { font-size: .74rem; margin: 2px 0 0; }
.compact .check { font-size: .78rem; margin: 8px 0 0; }
.compact .auth-go { height: 42px; margin-top: 12px; font-size: .94rem; }
.compact .auth-msg { margin: 6px 0 0; min-height: 1.1em; font-size: .8rem; }
.compact .auth-links { margin-top: 8px; font-size: .82rem; }
.compact .g-btn { height: 40px; font-size: .88rem; } .compact .auth-or { margin: 10px 0 8px; }
@media (max-width: 480px) { .auth-card.compact { padding: 18px 16px 16px; } }

.auth-fine a { color: var(--brand); }

/* phones: a smaller card with breathing room on every side */
@media (max-width: 640px) {
  .auth-body { padding: 36px 26px; align-items: center; }
  .auth-card, .auth-card.compact { width: 100%; max-width: 340px; min-height: 0; padding: 22px 18px 18px; border-radius: 14px; }
  .auth-brand { font-size: 1.1rem; margin-bottom: 10px; } .auth-brand .logo { width: 28px; height: 28px; }
  .auth-card h1 { font-size: 1.2rem; margin: 2px 0 12px; }
  .auth-card label { font-size: .76rem; margin: 9px 0 3px; }
  .auth-card input[type=text], .auth-card input[type=password], .auth-card input[type=tel], .auth-card input[type=email] { height: 42px; padding: 0 10px; }
  .auth-go { height: 44px; margin-top: 14px; font-size: .95rem; }
  .g-btn { height: 42px; font-size: .9rem; }
  .auth-links { font-size: .82rem; margin-top: 10px; }
  .auth-fine { padding-top: 12px; font-size: .7rem; }
  .auth-or { margin: 12px 0 8px; }
}

/* phones: shorter sign-up card and clear space below it (above the browser's bottom bar) */
@media (max-width: 640px) {
  .auth-body { align-items: start; padding: 28px 26px calc(110px + env(safe-area-inset-bottom)); min-height: 100svh; }
  .auth-card.compact { padding: 16px 16px 14px; }
  .compact .auth-brand { margin-bottom: 4px; font-size: 1rem; } .compact .auth-brand .logo { width: 24px; height: 24px; font-size: .85rem; }
  .compact h1 { font-size: 1.1rem; margin: 0 0 4px; }
  .compact .lead { font-size: .74rem; margin: 0 0 6px; }
  .compact label { font-size: .7rem; margin: 6px 0 2px; }
  .compact input[type=text], .compact input[type=password], .compact input[type=tel], .compact input[type=email] { height: 36px; font-size: 16px; }
  .compact .pw-row button { height: 36px; font-size: .8rem; padding: 0 10px; }
  .compact .tiny { font-size: .7rem; } .compact .check { font-size: .74rem; margin-top: 6px; }
  .compact .auth-go { height: 40px; margin-top: 10px; font-size: .9rem; }
  .compact .auth-msg { margin: 4px 0 0; min-height: .9em; font-size: .76rem; }
  .compact .g-btn { height: 38px; font-size: .84rem; } .compact .auth-or { margin: 8px 0 6px; }
  .compact .auth-fine { font-size: .66rem; padding-top: 6px; }
  .compact .auth-links { margin-top: 6px; font-size: .78rem; }
}

/* close button on the card, and a heading that stays readable in dark mode */
.auth-card h1 { color: var(--ink); }
.auth-close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 1.6rem; line-height: 1; text-decoration: none; }
.auth-close:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 640px) { .auth-close { top: 6px; right: 8px; width: 32px; height: 32px; font-size: 1.4rem; } }

/* Create account button: teal on hover (white text for contrast) */
.auth-go.go-teal:hover:not(:disabled), .auth-go.go-teal:focus-visible { background: #0E756D; color: #fff; filter: none; }

/* messages on the sign-in pages: boxed, only shown when there is something to say */
.auth-msg { min-height: 0; text-align: left; font-size: .86rem; line-height: 1.4; }
.auth-msg:empty { display: none; }
.auth-msg:not(:empty) { display: block; margin: 12px 0 0; padding: 9px 12px; border: 1px solid var(--m-err-bd); border-radius: 10px; background: var(--m-err-bg); color: var(--m-err-tx); }
.auth-msg:not(:empty)::before { content: '⚠\00a0'; font-weight: 700; }
.auth-msg.ok:not(:empty) { background: var(--m-ok-bg); border-color: var(--m-ok-bd); color: var(--m-ok-tx); }
.auth-msg.ok:not(:empty)::before { content: '✓\00a0'; }
.auth-msg.info:not(:empty) { background: var(--m-info-bg); border-color: var(--m-info-bd); color: var(--m-info-tx); }
.auth-msg.info:not(:empty)::before { content: 'ℹ\00a0'; }
.compact .auth-msg:not(:empty) { margin-top: 8px; padding: 7px 10px; font-size: .78rem; }

/* login page: price card on the left, login window on the right, same height */
.auth-split { position: relative; z-index: 1; display: flex; align-items: stretch; justify-content: center; gap: 28px; width: 100%; max-width: 940px; }
.auth-split .auth-card { flex: 0 0 440px; width: 440px; }
.auth-price { flex: 1 1 0; min-width: 0; max-width: 440px; background: var(--surface); border: 2px solid var(--accent); border-radius: 16px; padding: 34px 30px 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); display: flex; flex-direction: column; color: var(--ink); }
.ap-name { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.ap-amt { margin: 8px 0 16px; } .ap-amt b { font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; line-height: 1.1; } .ap-amt span { color: var(--muted); margin-left: 8px; }
.auth-price ul { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 10px; }
.auth-price li { padding-left: 28px; position: relative; font-size: .95rem; line-height: 1.4; }
.auth-price li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 800; display: grid; place-items: center; }
.auth-price .price-go { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 22px; }
.ap-note { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }
@media (max-width: 940px) { .auth-price { display: none; } .auth-split { justify-content: center; } .auth-split .auth-card { flex: 0 1 440px; width: min(440px, 100%); } }

/* login page, desktop: plain panel on the left (picture, price, what you get), colourful side with the login window on the right */
body.auth-body.split { display: block; padding: 0; background: var(--surface); overflow-x: hidden; }
body.split::before { left: 50%; }
.split .auth-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; width: 100%; max-width: none; min-height: 100vh; }
.split .auth-price { background: transparent; border: 0; border-radius: 0; box-shadow: none; max-width: none; padding: 40px 32px; display: flex; align-items: center; justify-content: center; }
.split .ap-inner { width: min(470px, 100%); }
.split .ap-art { display: block; margin: 0 auto 22px; max-width: 100%; height: auto; }
.ap-title { font-size: 1.6rem; line-height: 1.2; margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; color: var(--ink); text-align: center; }
.ap-sub { text-align: center; color: var(--muted); margin: 0 0 6px; }
.split .ap-amt { text-align: center; margin: 4px 0 18px; }
.split .auth-price ul { margin: 0 0 6px; }
.split .ap-note { text-align: left; margin-top: 16px; }
.split .auth-right { display: grid; place-items: center; padding: 40px 24px; position: relative; z-index: 1; }
.split .auth-card { flex: none; width: min(440px, 100%); }
/* phones and narrow windows: login window first, price card below it */
@media (max-width: 940px) {
  body.auth-body.split { padding: 28px 26px calc(110px + env(safe-area-inset-bottom)); }
  body.split::before { left: 0; }
  .split .auth-split { display: flex; flex-direction: column; align-items: center; gap: 18px; min-height: 0; }
  .split .auth-right { order: 1; padding: 0; width: 100%; display: flex; justify-content: center; }
  .split .auth-price { display: block; order: 2; width: 100%; max-width: 340px; background: var(--surface); border: 2px solid var(--accent); border-radius: 14px; padding: 20px 18px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
  .split .ap-art { display: none; }
  .split .ap-inner { width: 100%; }
  .ap-title { font-size: 1.15rem; } .ap-sub { font-size: .85rem; }
  .split .ap-amt b { font-size: 2rem; } .split .auth-price li { font-size: .88rem; }
}

/* phones: the price card is on the home page, not under the login window */
@media (max-width: 940px) { .split .auth-price { display: none; } }

/* terms agreement on the sign-up form */
.check.agree { align-items: flex-start; gap: 10px; margin: 12px 0 0; font-size: .8rem; line-height: 1.45; color: var(--ink); }
.check.agree input { margin-top: 2px; }
.check.agree a { color: var(--brand); font-weight: 600; }
.compact .check.agree { font-size: .76rem; margin-top: 8px; }

/* plain text on the card follows the page theme (it was dark-on-dark in dark mode) */
.auth-card { color: var(--ink); }

/* password field with a show / hide eye */
.pw-eye { position: relative; flex: 1; display: flex; min-width: 0; }
.pw-eye input { width: 100%; padding-right: 46px !important; }
.pw-eye .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0 !important; border-radius: 8px; background: none !important; color: var(--muted); cursor: pointer; height: 36px !important; }
.pw-eye .eye:hover, .pw-eye .eye:focus-visible { color: var(--ink) !important; background: var(--hover) !important; }
.pw-eye .eye .e-off, .pw-eye .eye[aria-pressed="true"] .e-on { display: none; } .pw-eye .eye[aria-pressed="true"] .e-off { display: block; }

/* the × that leaves the page: amber with a dark ×, like every close button in the app */
.auth-close, .auth-close:hover { background: #FEBF3F; color: #141414; font-weight: 800; }

/* the close button: a drawn × centred in its amber circle, inside the card's corner */
.auth-close { top: 14px !important; right: 14px !important; width: 32px !important; height: 32px !important; padding: 0; font-size: 0 !important; line-height: 0; }
.auth-close svg { display: block; width: 16px; height: 16px; }
@media (max-width: 640px) { .auth-close { top: 10px !important; right: 10px !important; } }

/* sign-in messages: solid colours like the app's alerts, no border: red for a problem, deep teal when done, dark for information */
.auth-msg:not(:empty) { border: 0 !important; border-radius: 10px !important; background: #E5484D !important; color: #fff !important; font-weight: 600; }
.auth-msg.ok:not(:empty) { background: #0F776F !important; color: #fff !important; }
.auth-msg.info:not(:empty) { background: #18302d !important; color: #e9eeec !important; }

/* Monifyx: the mark (a rising M with a teal coin) inside the amber logo tiles */
.mfx-mark { display: block; width: 72%; height: 72%; margin: auto; color: #0F1413; }
.logo, .logo-big, .ae-logo b { display: inline-grid; place-items: center; }
.boot-dot { fill: #0F776F; }

/* log-in page: the logo sits beside "Log in to Monifyx" (no separate name above it) */
.auth-h-logo { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-h-logo a { display: inline-flex; text-decoration: none; }
.auth-h-logo .logo { width: 34px; height: 34px; border-radius: 10px; background: #FFBF3F; flex: none; }

.mfx-mark { width: 86% !important; height: 86% !important; }

/* sign-up: Generate (a password) */
#gen { background: #0F776F !important; border-color: #0F776F !important; color: #fff !important; }
#gen:hover { background: #FFBF3F !important; border-color: #FFBF3F !important; color: #000 !important; }
/* the logo beside the heading is as tall as the heading's letters */
.auth-h-logo { gap: .4em !important; }
.auth-h-logo .logo { width: 1.05em !important; height: 1.05em !important; border-radius: .26em !important; }
