:root {
  color-scheme: light;
  --verde: #33AA88;
  --amarelo: #ffbe0b;
  --laranja: #fb5607;
  --rosa-escuro: #ff006e;
  --lilas: #8338ec;
  --azul: #3a86ff;
  --rosa: #ef7591;
  --branco: #f2f2f2;
  --preto: #222222;
  --cinza-claro: #eeeeee;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background-color: var(--laranja);
}





/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--azul);
  background:
    radial-gradient(ellipse at 15% 10%, rgba(111, 145, 255, .16), transparent 38%),
    radial-gradient(ellipse at 90% 90%, rgba(88, 203, 186, .13), transparent 35%),
    var(--laranja);
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-card {
  width: min(100%, 440px);
  padding: clamp(26px, 5vw, 42px);
  background: var(--amarelo);
  border: 1px solid rgba(220, 227, 238, .85);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(34, 50, 91, .10);
}

.brand {
  text-align: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 16px;
  color: white;
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4268ed, #6b83f2);
  box-shadow: 0 8px 18px rgba(49, 87, 213, .24);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--rosa);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .15em;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: -.04em;
}

.intro {
  margin: 10px 0 26px;
  color: var(--lilas);
  font-size: .95rem;
  line-height: 1.5;
}

.form-panel {
  width: 100%;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  font-size: .88rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder {
  color: #98a2b3;
}

input:hover {
  border-color: #b7c4dc;
}

input:focus-visible {
  border-color: var(--rosa);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 87, 213, .13);
}

small {
  color: var(--lilas);
  font-size: .78rem;
}

.primary-button {
  width: 100%;
  min-height: 49px;
  margin-top: 3px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--rosa);
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.primary-button:hover {
  background: var(--rosa-escuro);
  box-shadow: 0 7px 16px rgba(49, 87, 213, .2);
}

.primary-button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.form-message {
  min-height: 0;
  margin: -4px 0 0;
  color: #b42318;
  font-size: .86rem;
  line-height: 1.45;
}

.form-message:empty {
  display: none;
}

.switch-area {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #edf0f6;
  text-align: center;
}

.switch-area p {
  margin: 0 0 5px;
  color: var(--lilas);
  font-size: .9rem;
}

.text-button {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  color: var(--primary);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.text-button:hover {
  color: var(--primary-dark);
  background: #f2f5ff;
}

.security-note {
  margin: 24px 0 0;
  color: #8791a4;
  text-align: center;
  font-size: .72rem;
  line-height: 1.5;
}

.security-note span {
  margin-right: 5px;
  color: #24a17b;
  font-size: .6rem;
}

/*Posicionamento do Olho*/
.password-input {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
}

@media (max-width: 480px) {
  .page-shell {
    place-items: start center;
    padding: 18px 12px;
  }

  .auth-card {
    margin: auto 0;
    padding: 27px 22px;
    border-radius: 18px;
  }

  .intro {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

#mensagem {
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
}

.sucesso {
  color: green;
}

.erro {
  color: red;
}