:root {
  color-scheme: dark;

  --bg: #050505;
  --panel: #0c0c0d;
  --surface: #121214;
  --surface-hover: #161618;

  --white: #ffffff;
  --text: #f5f5f7;
  --muted: #9b9ba5;
  --muted-2: #666670;

  --purple: #7a00ff;
  --purple-2: #a100ff;

  --green: #75e49a;
  --red: #ff7474;
  --yellow: #ffc968;

  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.11);

  --radius-xl: 30px;
  --radius-lg: 19px;
  --radius-md: 15px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;

  overflow-x: hidden;

  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 22px;
  height: 22px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FUNDO */

.ambient {
  position: fixed;
  inset: 0;

  overflow: hidden;
  pointer-events: none;
}

.ambient-light {
  position: absolute;

  border-radius: 999px;
  filter: blur(150px);
}

.ambient-light-top {
  width: 500px;
  height: 260px;

  top: -230px;
  left: calc(50% - 250px);

  background: rgba(122, 0, 255, 0.5);
  opacity: 0.17;
}

.ambient-light-bottom {
  width: 300px;
  height: 300px;

  right: -200px;
  bottom: -230px;

  background: rgba(122, 0, 255, 0.35);
  opacity: 0.08;
}

/* LAYOUT */

.page {
  position: relative;
  z-index: 1;

  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    max(32px, env(safe-area-inset-top))
    18px
    max(32px, env(safe-area-inset-bottom));
}

.panel {
  position: relative;

  width: min(100%, 500px);

  padding: 34px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.018),
      transparent 45%
    ),
    var(--panel);

  border: 1px solid var(--border);
  border-radius: var(--radius-xl);

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(122, 0, 255, 0.025);
}

.panel::before {
  content: "";

  position: absolute;

  top: 0;
  left: 17%;
  right: 17%;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(161, 0, 255, 0.52),
    transparent
  );

  opacity: 0.7;
}

/* MARCA */

.brand {
  display: flex;
  align-items: center;

  gap: 13px;

  margin-bottom: 43px;
}

.brand-symbol {
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  overflow: hidden;

  border: 1px solid rgba(161, 0, 255, 0.22);
  border-radius: 16px;

  background: #050505;
}

.brand-symbol img {
  width: 47px;
  height: 47px;

  display: block;

  object-fit: cover;
  border-radius: 14px;
}

.brand > span {
  color: var(--white);

  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.45px;
}

/* ESTADOS */

.state {
  display: none;

  animation: state-enter 300ms cubic-bezier(.22, .7, .25, 1);
}

.state-visible {
  display: block;
}

@keyframes state-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kicker {
  display: block;

  margin-bottom: 11px;

  color: #b747ff;

  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.kicker-success {
  color: var(--green);
}

.kicker-error {
  color: var(--red);
}

h1 {
  margin: 0;

  color: var(--white);

  font-size: clamp(31px, 7vw, 38px);
  line-height: 1.06;

  font-weight: 800;
  letter-spacing: -1.25px;
}

.description {
  margin: 15px 0 0;

  max-width: 410px;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.58;
}

/* ÍCONES PRINCIPAIS */

.state-mark {
  width: 61px;
  height: 61px;

  display: grid;
  place-items: center;

  margin-bottom: 27px;

  border-radius: 19px;
}

.purple-mark {
  color: #bd55ff;

  background: rgba(122, 0, 255, 0.1);
  border: 1px solid rgba(161, 0, 255, 0.23);
}

.error-mark {
  color: var(--red);

  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 116, 116, 0.2);
}

.neutral-mark {
  color: #b6b6bf;

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

/* LOADING */

.loading-mark {
  position: relative;

  width: 74px;
  height: 74px;

  display: grid;
  place-items: center;

  margin-bottom: 27px;
}

.loading-mark img {
  position: relative;
  z-index: 2;

  width: 50px;
  height: 50px;

  object-fit: cover;

  border-radius: 15px;
}

.loading-ring {
  position: absolute;
  inset: 0;

  border: 1.5px solid rgba(161, 0, 255, 0.1);
  border-top-color: rgba(177, 61, 255, 0.85);
  border-radius: 50%;

  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* CONTA */

.account {
  margin-top: 28px;
  padding: 14px;

  display: flex;
  align-items: center;

  gap: 12px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.account-icon {
  width: 41px;
  height: 41px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  color: #b747ff;

  background: rgba(122, 0, 255, 0.09);

  border-radius: 13px;
}

.account-icon svg {
  width: 20px;
  height: 20px;
}

.account-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.account-copy span {
  color: var(--muted-2);

  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.65px;

  text-transform: uppercase;
}

.account-copy strong {
  overflow: hidden;

  color: #ececf0;

  font-size: 13.5px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* FORMULÁRIO */

form {
  margin-top: 27px;
}

.field + .field {
  margin-top: 18px;
}

.field label {
  display: block;

  margin: 0 0 9px 2px;

  color: #d8d8de;

  font-size: 12.5px;
  font-weight: 600;
}

.input-shell {
  position: relative;
}

.input-shell input {
  width: 100%;
  height: 57px;

  padding: 0 53px 0 16px;

  outline: none;

  color: var(--white);
  background: var(--surface);

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;

  font-size: 15px;

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.input-shell input::placeholder {
  color: #5d5d66;
}

.input-shell input:hover {
  border-color: var(--border-strong);
}

.input-shell input:focus {
  background: #141416;

  border-color: rgba(161, 0, 255, 0.68);

  box-shadow: 0 0 0 4px rgba(122, 0, 255, 0.08);
}

.password-toggle {
  position: absolute;

  top: 50%;
  right: 9px;

  width: 39px;
  height: 39px;

  display: grid;
  place-items: center;

  transform: translateY(-50%);

  color: #85858e;
  background: transparent;

  border: 0;
  border-radius: 11px;

  cursor: pointer;
}

.password-toggle:hover {
  color: var(--white);

  background: rgba(255, 255, 255, 0.04);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* FORÇA DA SENHA */

.strength {
  margin-top: 19px;
}

.strength-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 8px;

  color: var(--muted-2);

  font-size: 11.5px;
}

.strength-info strong {
  font-weight: 700;
}

.strength-track {
  height: 5px;

  overflow: hidden;

  background: #1d1d20;

  border-radius: 999px;
}

#strength-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background: var(--red);

  transition:
    width 220ms ease,
    background 220ms ease;
}

.requirements {
  margin: 15px 0 0;
  padding: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 8px 15px;

  list-style: none;
}

.requirements li {
  position: relative;

  padding-left: 17px;

  color: #65656e;

  font-size: 11.5px;

  transition: color 180ms ease;
}

.requirements li::before {
  content: "";

  position: absolute;

  top: 5px;
  left: 1px;

  width: 6px;
  height: 6px;

  background: #3d3d43;

  border-radius: 50%;
}

.requirements li.valid {
  color: #9fd7aa;
}

.requirements li.valid::before {
  background: var(--green);
}

/* BOTÕES */

.button {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  margin-top: 25px;
  padding: 0 18px;

  border-radius: 17px;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 150ms ease,
    filter 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    opacity 150ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
}

.button-primary {
  color: var(--white);

  background:
    linear-gradient(
      100deg,
      #6c00df,
      #8100f1 52%,
      #9800ff
    );

  border: 0;

  box-shadow:
    0 14px 35px rgba(122, 0, 255, 0.16);
}

.button-primary:hover {
  filter: brightness(1.07);
}

.button-secondary {
  color: #eeeeF2;

  background: var(--surface);

  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: var(--surface-hover);

  border-color: var(--border-strong);
}

.button:active {
  transform: scale(0.988);
}

.button:disabled {
  opacity: 0.48;

  cursor: not-allowed;
}

/* MENSAGENS */

.message {
  margin-top: 17px;
  padding: 13px 14px;

  border-radius: 14px;

  font-size: 12.5px;
  line-height: 1.5;
}

.message-error {
  color: #ff9696;

  background: rgba(255, 77, 77, 0.075);

  border: 1px solid rgba(255, 116, 116, 0.17);
}

.hidden {
  display: none;
}

.soft-box {
  margin-top: 24px;
  padding: 15px 16px;

  color: #a2a2ac;

  background: rgba(255, 255, 255, 0.018);

  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;

  font-size: 12.5px;
  line-height: 1.55;
}

/* SUCESSO */

.success-mark {
  position: relative;

  width: 78px;
  height: 78px;

  margin-bottom: 27px;
}

.success-logo {
  width: 69px;
  height: 69px;

  overflow: hidden;

  background: #050505;

  border: 1px solid rgba(161, 0, 255, 0.2);
  border-radius: 21px;
}

.success-logo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.success-check {
  position: absolute;

  right: 0;
  bottom: 0;

  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: #08130c;
  background: var(--green);

  border: 4px solid var(--panel);
  border-radius: 50%;
}

.success-check svg {
  width: 15px;
  height: 15px;

  stroke-width: 2.6;
}

/* RESPONSIVO */

@media (max-width: 560px) {
  .page {
    align-items: flex-start;

    padding:
      max(18px, env(safe-area-inset-top))
      12px
      max(18px, env(safe-area-inset-bottom));
  }

  .panel {
    padding: 25px 21px;

    border-radius: 25px;
  }

  .brand {
    margin-bottom: 36px;
  }

  h1 {
    font-size: 31px;
  }

  .requirements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .panel {
    padding: 22px 17px;
  }

  h1 {
    font-size: 28px;
  }
}