/* MISCONER auth — sized to 390px mobile mockup */

:root {
  --mc-navy: #0a1f4a;
  --mc-navy-soft: #1a3a7a;
  --mc-blue: #1a56db;
  --mc-blue-bright: #2b7bff;
  --mc-cyan: #4db8ff;
  --mc-muted: #6b7c96;
  --mc-line: #e2e8f2;
  --mc-card: #ffffff;
  --mc-grad: linear-gradient(90deg, #1a56db 0%, #4db8ff 100%);
  --mc-safe-top: env(safe-area-inset-top, 0px);
  --mc-safe-bottom: env(safe-area-inset-bottom, 0px);

  /* mockup artboard (iPhone ~390) */
  --mc-w: 390px;
  --mc-pad-x: 24px;
  --mc-logo-in: 100px;
  --mc-logo-up: 76px;
  --mc-globe-in: 168px;
  --mc-globe-up: 180px;
  /* compact pill inputs */
  --mc-field-h: 56px;
  --mc-field-r: 20px;
  --mc-ico: 40px;
  --mc-btn-h: 50px;
  --mc-outline-h: 46px;
  --mc-form-gap: 12px;
  --mc-banner-url: url("../banner.png");
  --mc-banner-head: clamp(124px, 36vw, 152px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body.mc-auth {
  margin: 0;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  color: var(--mc-navy);
  background: #ffffff;
}

.mc-auth-page {
  position: relative;
  width: min(var(--mc-w), 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(10px + var(--mc-safe-top))
    max(var(--mc-pad-x), env(safe-area-inset-left))
    calc(24px + var(--mc-safe-bottom))
    max(var(--mc-pad-x), env(safe-area-inset-right));
  overflow-x: hidden;
}

.mc-auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 42% at 50% 0%, rgba(77, 184, 255, 0.2), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f7f9fc 100%);
}

.mc-auth-page::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(140% 100% at 15% 120%, rgba(26, 86, 219, 0.42), transparent 55%),
    radial-gradient(120% 100% at 88% 130%, rgba(77, 184, 255, 0.38), transparent 58%);
}

.mc-auth-page > * {
  position: relative;
  z-index: 1;
}

/* ---- Brand: sign in (centered) ---- */
body.mc-auth--signin .mc-auth-brand {
  position: relative;
  text-align: center;
  min-height: 178px;
  padding: 0 0 6px;
}

body.mc-auth--signin .mc-auth-brand__globe {
  position: absolute;
  right: -12px;
  top: 0;
  width: var(--mc-globe-in);
  max-width: 48vw;
  height: auto;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  filter: drop-shadow(0 14px 22px rgba(26, 86, 219, 0.28));
}

body.mc-auth--signin .mc-auth-brand__logo {
  position: relative;
  z-index: 1;
  width: var(--mc-logo-in);
  max-width: 28vw;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 10px 16px rgba(26, 86, 219, 0.26));
}

body.mc-auth--signin .mc-auth-brand__name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--mc-navy);
}

body.mc-auth--signin .mc-auth-brand__tag {
  position: relative;
  z-index: 1;
  margin: 8px auto 0;
  max-width: 200px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #7a8ca8;
}

/* ---- Brand: sign up (left) ---- */
body.mc-auth--signup .mc-auth-brand {
  position: relative;
  text-align: left;
  min-height: 132px;
  padding: 0 0 10px;
}

body.mc-auth--signup .mc-auth-brand__globe {
  position: absolute;
  right: -22px;
  top: 8px;
  width: var(--mc-globe-up);
  max-width: 50vw;
  height: auto;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 14px 22px rgba(26, 86, 219, 0.24));
}

body.mc-auth--signup .mc-auth-brand__logo {
  position: relative;
  z-index: 1;
  width: var(--mc-logo-up);
  max-width: 22vw;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 4px 0 6px;
  filter: drop-shadow(0 8px 14px rgba(26, 86, 219, 0.22));
}

body.mc-auth--signup .mc-auth-brand__name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--mc-navy);
}

body.mc-auth--signup .mc-auth-brand__tag {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  max-width: 150px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
  color: #7a8ca8;
  text-align: left;
}

.mc-auth-topline {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 2;
  width: 88px;
  margin: 0;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.28;
  text-align: right;
  text-transform: uppercase;
  color: var(--mc-navy);
}

/* ---- Sign-in intro + skyline ---- */
.mc-auth-intro {
  display: grid;
  grid-template-columns: 1fr 118px;
  align-items: end;
  gap: 0;
  margin: 4px 0 18px;
  min-height: 118px;
}

.mc-auth-intro__sky {
  width: 118px;
  height: auto;
  align-self: end;
  justify-self: end;
  margin-bottom: 2px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(26, 86, 219, 0.12));
}

.mc-auth-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mc-blue);
}

.mc-auth-title {
  margin: 0 0 10px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--mc-navy);
}

.mc-auth-lead {
  margin: 0;
  max-width: 228px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--mc-muted);
}

/* ---- Form banner panel (banner.png) ---- */
.mc-auth-banner {
  position: relative;
  margin: 8px 0 14px;
  padding:
    var(--mc-banner-head)
    14px
    18px
    16px;
  border-radius: 22px;
  overflow: hidden;
  background-color: #f4f8ff;
  background-image: var(--mc-banner-url);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  box-shadow: 0 14px 32px rgba(10, 31, 74, 0.1);
}

/* Login: banner image only — no extra panel fill or header overlay */
body.mc-auth--signin {
  background: #fff;
}

body.mc-auth--signin .mc-auth-page::before,
body.mc-auth--signin .mc-auth-page::after {
  display: none;
}

body.mc-auth--signin .mc-auth-banner {
  margin-top: 4px;
  padding-top: var(--mc-banner-head);
  background-color: transparent;
  box-shadow: none;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center top;
}

.mc-auth-banner__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Form shell ---- */
.mc-auth-form-wrap {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

body.mc-auth--signin .mc-auth-form-wrap,
body.mc-auth--signin .mc-auth-form {
  background: transparent;
}

.mc-auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--mc-form-gap);
}

/* ---- Fields (tall pills — match mockup) ---- */
body.mc-auth .mc-auth-field.ic-field {
  border-bottom: none;
}

.mc-auth-field {
  display: grid;
  grid-template-columns: var(--mc-ico) 1fr;
  gap: 10px;
  align-items: center;
  min-height: var(--mc-field-h);
  padding: 8px 12px 8px 10px;
  background: #ffffff;
  border: 1px solid #e8eef8;
  border-radius: var(--mc-field-r);
  box-shadow:
    0 1px 0 #fff inset,
    0 5px 0 #d5deee,
    0 10px 16px rgba(6, 20, 43, 0.06);
}

.mc-auth-field__ico {
  width: var(--mc-ico);
  height: var(--mc-ico);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: var(--mc-blue);
  flex-shrink: 0;
  align-self: center;
}

.mc-auth-field__ico svg {
  width: 20px;
  height: 20px;
}

.mc-auth-field__body {
  min-width: 0;
  align-self: center;
}

.mc-auth-field__body small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--mc-blue);
  margin-bottom: 2px;
  line-height: 1.2;
}

.mc-auth-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mc-auth-dial {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--mc-navy);
  letter-spacing: 0.02em;
}

.mc-auth-field__body input {
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-navy);
  padding: 0;
  line-height: 1.35;
  width: 100%;
  min-width: 0;
}

.mc-auth-input-row input {
  flex: 1;
  width: auto;
}

.mc-auth-field__body input::placeholder {
  color: #b4c0d4;
  font-weight: 500;
  font-size: 13px;
}

.mc-auth-field--pass {
  grid-template-columns: var(--mc-ico) 1fr 36px;
  padding-right: 8px;
}

.mc-auth-field--pass .mc-auth-field__body {
  grid-column: 2;
}

.mc-auth-eye {
  grid-column: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8a9bb5;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.mc-auth-eye svg {
  width: 20px;
  height: 20px;
}

.mc-auth-eye .ic-eye--on {
  display: none;
}

.mc-auth-eye[data-visible="1"] .ic-eye--off {
  display: none;
}

.mc-auth-eye[data-visible="1"] .ic-eye--on {
  display: block;
}

.mc-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  margin: 0 0 2px;
}

.mc-auth-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--mc-navy-soft);
  cursor: pointer;
}

.mc-auth-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--mc-blue);
}

.mc-auth-row a {
  color: var(--mc-blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 11.5px;
  white-space: nowrap;
}

.mc-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--mc-btn-h);
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: var(--mc-grad);
  box-shadow: 0 10px 24px rgba(26, 86, 219, 0.32);
  transition: transform 0.12s ease;
}

.mc-auth-submit:active {
  transform: scale(0.98);
}

.mc-auth-submit svg {
  width: 17px;
  height: 17px;
}

.mc-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mc-muted);
}

.mc-auth-divider::before,
.mc-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dce4f0;
}

.mc-auth-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--mc-outline-h);
  border-radius: 999px;
  border: 2px solid var(--mc-blue);
  background: #fff;
  color: var(--mc-blue);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.mc-auth-outline:active {
  background: #eef4ff;
}

.mc-auth-outline svg {
  width: 15px;
  height: 15px;
}

.mc-auth-login-link {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--mc-blue);
  text-decoration: none;
}

.mc-auth-script {
  margin: 20px 0 0;
  padding-right: 4px;
  text-align: right;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  color: var(--mc-blue);
  opacity: 0.88;
}

.mc-auth-terms {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--mc-muted);
}

.mc-auth-terms input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--mc-blue);
  flex-shrink: 0;
}

@media (max-width: 360px) {
  :root {
    --mc-logo-in: 88px;
    --mc-field-h: 72px;
    --mc-field-r: 28px;
    --mc-ico: 50px;
    --mc-pad-x: 18px;
    --mc-intro-sky: 100px;
  }

  .mc-auth-intro {
    grid-template-columns: 1fr 100px;
    min-height: 108px;
  }

  .mc-auth-intro__sky {
    width: 100px;
  }

  .mc-auth-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-auth-submit,
  .mc-auth-outline {
    transition: none;
  }
}
