:root {
  color-scheme: light;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: #111b3b;
  background: #faf7ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #111b3b;
  --purple: #7700e8;
  --violet: #a13bff;
  --plum: #82006d;
  --lavender: #f4eaff;
  --stroke: #b56aff;
}

* { box-sizing: border-box; }
html, body { min-width: 0; min-height: 100%; margin: 0; }
body { min-height: 100svh; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-layout {
  display: grid;
  grid-template-columns: 61.8fr 38.2fr;
  min-height: 100svh;
  overflow: hidden;
  background: #fbf8ff;
}

.welcome-art {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #f4eaff;
}
.welcome-art::after {
  position: absolute;
  inset: 0 -1px 0 auto;
  width: 7.5%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(251, 248, 255, .64));
}
.welcome-art__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
  object-position: center;
}

.login-panel {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(32px, 3.2vw, 122px) clamp(28px, 3.1vw, 120px);
  background:
    radial-gradient(ellipse at 88% 8%, rgba(239, 222, 255, .46), transparent 37%),
    linear-gradient(135deg, #fff 0%, #fff 46%, #faf6ff 100%);
}
.login-panel { padding-bottom: clamp(28px, 3.1vw, 118px); }
.login-content { width: min(100%, 1320px); }
.brand {
  display: block;
  width: clamp(250px, 26vw, 1000px);
  margin: 0 0 clamp(34px, 2.25vw, 86px) clamp(12px, 2.8vw, 108px);
  color: inherit;
  text-decoration: none;
}
.brand__image { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

.login-heading { margin-bottom: clamp(35px, 2.45vw, 94px); }
.login-heading h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(40px, 3.45vw, 132px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.1;
  white-space: nowrap;
}
.login-heading p {
  margin: clamp(4px, .35vw, 14px) 0 0;
  color: #806b99;
  font-size: clamp(21px, 1.82vw, 70px);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.login-form { display: grid; gap: clamp(18px, 1.35vw, 52px); }
.field-group { display: grid; gap: clamp(6px, .42vw, 16px); }
.field-group label { color: var(--navy); font-size: clamp(20px, 1.48vw, 57px); font-weight: 800; }
.input-wrap {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.08vw, 42px);
  min-height: clamp(58px, 3.75vw, 144px);
  padding: 0 clamp(18px, 1.35vw, 52px);
  border: clamp(1px, .09vw, 3px) solid var(--stroke);
  border-radius: clamp(13px, .85vw, 33px);
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 0 0 0 rgba(161, 59, 255, 0);
  transition: box-shadow .18s ease, background .18s ease;
}
.input-wrap:focus-within { background: #fff; box-shadow: 0 0 0 5px rgba(161, 59, 255, .12); }
.input-wrap > svg, .visibility-toggle svg {
  width: clamp(24px, 1.75vw, 67px);
  height: clamp(24px, 1.75vw, 67px);
  flex: none;
  fill: none;
  stroke: #8e70a9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font-size: clamp(18px, 1.44vw, 55px);
  font-weight: 600;
}
.input-wrap input::placeholder { color: #806d98; opacity: 1; }
.visibility-toggle {
  display: grid;
  place-items: center;
  width: clamp(35px, 2.4vw, 92px);
  height: clamp(35px, 2.4vw, 92px);
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.visibility-toggle:hover svg, .text-link:hover { color: #6400c8; stroke: #6400c8; }
.forgot-row { display: flex; justify-content: flex-end; margin-top: calc(clamp(18px, 1.35vw, 52px) * -.55); }
.text-link {
  padding: 0;
  border: 0;
  color: var(--purple);
  background: transparent;
  font-size: clamp(16px, 1.3vw, 50px);
  font-weight: 800;
}
.primary-button, .secondary-button {
  width: 100%;
  min-height: clamp(62px, 4.25vw, 163px);
  border-radius: 999px;
  font-size: clamp(21px, 1.72vw, 66px);
  font-weight: 900;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.primary-button {
  margin-top: clamp(13px, .8vw, 31px);
  border: 0;
  color: #fff;
  background: linear-gradient(105deg, #910075 0%, #78005d 100%);
  box-shadow: 0 8px 22px rgba(118, 0, 91, .09);
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(118, 0, 91, .19); }
.secondary-button {
  border: clamp(1px, .1vw, 4px) solid var(--purple);
  color: var(--purple);
  background: rgba(255, 255, 255, .48);
}
.secondary-button:hover { background: #f4eaff; }
.separator { display: flex; align-items: center; gap: clamp(22px, 1.85vw, 71px); margin: clamp(0px, -.08vw, -3px) 0; color: #806d98; }
.separator span { height: 2px; flex: 1; background: #b56aff; }
.separator b { font-size: clamp(19px, 1.55vw, 60px); font-weight: 800; }
.form-message { min-height: 1.4em; margin: 0; color: #6c427d; font-size: clamp(13px, .95vw, 36px); text-align: center; }
.form-message:empty { display: none; }

@media (max-width: 1200px) and (min-width: 801px) {
  .login-layout { grid-template-columns: 55fr 45fr; }
  .login-panel { padding-inline: clamp(24px, 3.2vw, 48px); }
  .brand { margin-left: 5%; }
  .login-heading h1, .login-heading p { white-space: normal; }
}

@media (max-width: 800px), (max-aspect-ratio: 1/1) {
  .login-layout { display: flex; flex-direction: column; min-height: 100svh; overflow: visible; }
  .welcome-art { order: 0; min-height: 34svh; height: 34svh; }
  .welcome-art__image { min-height: 0; height: 100%; object-position: 48% 34%; }
  .welcome-art::after { inset: auto 0 -1px; width: auto; height: 18%; background: linear-gradient(180deg, transparent, #fcfaff); }
  .login-panel { order: 1; display: block; flex: 1; padding: 18px clamp(22px, 6vw, 48px) 36px; background: #fcfaff; }
  .login-panel { padding-bottom: clamp(28px, 3.1vw, 118px); }
.login-content { width: min(100%, 520px); margin: 0 auto; }
  .brand { width: min(100%, 280px); margin: 0 0 23px; }
  .brand__mark { width: 50px; }
  .brand__word { font-size: 34px; }
  .login-heading { margin-bottom: 26px; }
  .login-heading h1 { font-size: clamp(32px, 8vw, 42px); white-space: normal; }
  .login-heading p { font-size: clamp(17px, 4.5vw, 21px); white-space: normal; }
  .login-form { gap: 16px; }
  .field-group { gap: 6px; }
  .field-group label { font-size: 17px; }
  .input-wrap { min-height: 56px; padding-inline: 15px; border-radius: 13px; }
  .input-wrap > svg, .visibility-toggle svg { width: 23px; height: 23px; }
  .input-wrap input { font-size: 16px; }
  .visibility-toggle { width: 34px; height: 34px; }
  .forgot-row { margin-top: -5px; }
  .text-link { font-size: 15px; }
  .primary-button, .secondary-button { min-height: 56px; font-size: 18px; }
  .primary-button { margin-top: 7px; }
  .separator { gap: 18px; }
  .separator b { font-size: 16px; }
  .form-message { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (min-width: 801px) and (min-aspect-ratio: 1001/1000) {
  .login-layout {
    position: relative;
    isolation: isolate;
    --login-unit: clamp(11px, min(1vw, 1.78dvh), 25px);
    min-height: 100dvh;
    grid-template-columns: minmax(0, 61.8fr) minmax(0, 38.2fr);
    background: #f4effa;
  }
  .welcome-art { position: absolute; inset: 0; z-index: -1; min-height: 0; background: #f4effa; }
  .welcome-art::before {
    content:""; position:absolute; inset:-18px;
    background:url("assets/login-fundo-horizontal.png") left center / cover no-repeat;
    filter:blur(18px); opacity:.62;
  }
  .welcome-art::after { display:none; }
  .welcome-art__image {
    position: absolute;
    left: 0;
    top: 50%;
    translate: 0 -50%;
    width: min(100%, calc(100dvh * 1672 / 941));
    height: auto;
    min-height: 0;
    object-fit: contain;
    mask-image: linear-gradient(to bottom,transparent,#000 1.2%,#000 98.8%,transparent);
  }
  .login-panel {
    grid-column:2;
    padding: calc(var(--login-unit) * 1.45) 8% calc(var(--login-unit) * 1.65) 1.5%;
    background:linear-gradient(90deg, #f8f5fc00, #f8f5fc50 22%, #f6f3fc50);
  }
  .login-content { width: min(100%, 55rem); }
  .brand { width: min(79%, calc(var(--login-unit) * 26)); margin: 0 auto calc(var(--login-unit) * 1.42); }
  .login-heading { margin-bottom: calc(var(--login-unit) * 2.25); }
  .login-heading h1 { font-size: calc(var(--login-unit) * 3.66); white-space: normal; }
  .login-heading p { font-size: calc(var(--login-unit) * 1.83); white-space: normal; }
  .login-form { grid-template-columns:1fr 1fr; gap: calc(var(--login-unit) * 1.22); }
  .login-form > :not(.keep-session,.forgot-row) { grid-column:1 / -1; }
  .keep-session { grid-column:1; grid-row:3; align-self:center; }
  .field-group { gap: calc(var(--login-unit) * .31); }
  .field-group label { font-size: calc(var(--login-unit) * 1.39); }
  .input-wrap { min-height: calc(var(--login-unit) * 3.55); }
  .input-wrap input { font-size: calc(var(--login-unit) * 1.35); }
  .input-wrap > svg, .visibility-toggle svg { width: calc(var(--login-unit) * 1.65); height: auto; }
  .visibility-toggle { width: calc(var(--login-unit) * 2.2); height: calc(var(--login-unit) * 2.2); }
  .forgot-row { grid-column:2; grid-row:3; margin-top:0; align-self:center; }
  .text-link, .keep-session { font-size: calc(var(--login-unit) * 1.02); }
  .primary-button, .secondary-button { min-height: calc(var(--login-unit) * 4.15); font-size: calc(var(--login-unit) * 1.64); }
  .primary-button { margin-top: calc(var(--login-unit) * .65); }
  .separator b { font-size: calc(var(--login-unit) * 1.33); }
}
@media (min-width: 801px) and (max-width: 2300px) and (min-aspect-ratio: 17/10) {
  .login-panel { align-items:start; padding-top:calc(var(--login-unit) * 2.55); }
}
@media (min-width: 2560px) and (min-aspect-ratio: 17/10) {
  .login-layout { --login-unit: clamp(25px, 1vw, 34px); }
  .login-content { width:min(100%,80rem); }
}
@media (min-width: 801px) and (min-aspect-ratio: 1001/1000) and (max-aspect-ratio: 1699/1000) {
  .login-layout { grid-template-columns:minmax(0,63.8fr) minmax(0,36.2fr); }
  .welcome-art::before { display:none; }
  .welcome-art__image {
    inset:0; translate:none; width:100%; height:100%; object-fit:cover;
    object-position:13% center; mask-image:none;
  }
}
.login-layout { min-height: 100dvh; }
@media (max-width: 800px), (max-aspect-ratio: 1/1) {
  .login-layout { overflow: hidden; }
  .welcome-art__image { object-position: 29% 34%; }
  .welcome-art { height: clamp(52px, 26dvh, 420px); min-height: 0; flex: none; }
  .login-panel { min-height: 0; display: grid; align-items: center; padding-block: clamp(5px, 1.4dvh, 16px); }
  .brand { width: min(100%, 280px, 43dvh); margin-bottom: clamp(5px, 1.5dvh, 23px); }
  .login-heading { margin-bottom: clamp(6px, 2dvh, 26px); }
  .login-heading h1 { font-size: clamp(20px, min(7vw, 5dvh), 42px); }
  .login-heading p { font-size: clamp(13px, 2.5dvh, 21px); }
  .login-form { gap: clamp(3px, 1.25dvh, 16px); }
  .field-group { gap: clamp(2px, .6dvh, 6px); }
  .field-group label, .text-link { font-size: clamp(12px, 2.4dvh, 17px); }
  .input-wrap, .primary-button, .secondary-button { min-height: clamp(30px, 8dvh, 56px); }
  .primary-button, .secondary-button, .separator b { font-size: clamp(13px, 2.8dvh, 18px); }
  .primary-button, .forgot-row { margin-top: 0; }
  .visibility-toggle { height: 28px; }
  .form-message { font-size: clamp(11px, 2dvh, 13px); }
}
@media (max-height: 490px) and (max-width: 800px), (max-height: 490px) and (max-aspect-ratio: 1/1) {
  .welcome-art { height: 10dvh; }
}
@media (max-height: 370px) and (max-width: 800px), (max-height: 370px) and (max-aspect-ratio: 1/1) {
  .login-layout:focus-within .welcome-art, .login-layout:focus-within .brand { display: none; }
}

@media (max-width: 800px) and (min-height: 491px) and (max-height: 740px) { .welcome-art { height: 16dvh; } }
.local-preview {
  position: fixed;
  right: .6rem;
  bottom: .5rem;
  z-index: 2;
  padding: .25rem .55rem;
  border-radius: .5rem;
  background: #fff;
  color: #680056;
  font: 600 .75rem/1.3 system-ui, sans-serif;
}
.local-preview:focus-visible { outline: 2px solid #7700e8; }
.keep-session { color:#4f3264; font-size:clamp(11px,1.12vw,38px); }
.keep-session input { accent-color:#790460; }
.registration-dialog{color:#19133a;background:#fcf8ff;border:1px solid #d9bfe9;border-radius:1.1rem;width:min(92vw,29rem);padding:1.35rem}
.registration-dialog::backdrop{background:#22123866}
.registration-dialog form,.registration-dialog label{display:grid;gap:.5rem}
.registration-dialog input{padding:.55rem;border:1px solid #d9bfe9;border-radius:.55rem}
.registration-dialog form>div{display:flex;justify-content:end;gap:.65rem}
.registration-dialog button{padding:.55rem .85rem;border-radius:999px;border:1px solid #850870;background:#fff;color:#72065c}
.registration-dialog button[type=submit]{background:#72065c;color:#fff}
