:root {
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  font-family: "Onest", sans-serif;
  color: #232931;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button, input { font: inherit; }

body {
  min-height: 100vh;
  background-color: #7e8c9e;
  background-image:
    radial-gradient(130% 95% at 22% -5%, rgba(255,255,255,.09), transparent 55%),
    linear-gradient(150deg, rgba(255,255,255,.035), rgba(40,46,56,.06)),
    var(--noise);
  background-blend-mode: soft-light, soft-light, soft-light;
  background-size: auto, auto, 150px 150px;
  -webkit-font-smoothing: antialiased;
}

.next-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.next-login {
  width: 820px;
  max-width: 100%;
  display: flex;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(45,52,63,.32);
  animation: login-in .38s cubic-bezier(.3,1.02,.4,1) both;
}

.next-login__brand {
  position: relative;
  flex: 0 0 300px;
  padding: 44px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #47505e;
  background-image:
    radial-gradient(120% 160% at 12% -20%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.14)),
    var(--noise);
  background-blend-mode: soft-light, normal, soft-light;
  background-size: auto, auto, 150px 150px;
}

.next-login__logo { display: block; width: auto; height: 34px; }
.next-login__product {
  margin-top: 22px;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.next-login__caption {
  max-width: 190px;
  margin-top: 10px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.next-login__accent {
  width: 4px;
  height: 64px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4d97ec, #1f5da0);
  box-shadow: 0 4px 12px rgba(31,93,160,.4);
}

.next-login__form {
  flex: 1;
  min-width: 0;
  padding: 44px 40px 32px;
  background-color: #f1f4f3;
  background-image:
    linear-gradient(160deg, rgba(255,255,255,.16), rgba(71,80,94,.04)),
    var(--noise);
  background-blend-mode: soft-light, soft-light;
  background-size: auto, 150px 150px;
}

.next-login h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.next-login__intro { margin: 6px 0 26px; color: #5a6472; font-size: 13.5px; }
.next-field + .next-field { margin-top: 16px; }
.next-field label {
  display: block;
  margin-bottom: 7px;
  color: #8a94a1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .1em;
}
.next-field__control { position: relative; }
.next-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe3e7;
  border-radius: 11px;
  outline: 0;
  color: #232931;
  background: #fff;
  font-size: 14.5px;
  transition: box-shadow .16s ease, background .16s ease;
}
.next-field input[type="password"],
.next-field input[data-password] { padding-right: 44px; }
.next-field input:hover { background: #fff; }
.next-field input:focus {
  box-shadow: 0 0 0 2.5px rgba(31,93,160,.28), inset 0 1px 0 rgba(255,255,255,.6);
}
.next-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.4px #c0553a; }
.next-field__error { min-height: 17px; margin-top: 6px; color: #b64a30; font-size: 11.5px; }
.next-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  padding: 4px;
  border: 0;
  color: #8a94a1;
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
}
.next-eye:hover { color: #5a6472; }

.next-login__message {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #b64a30;
  background: #fbeae5;
  font-size: 12.5px;
  font-weight: 600;
  animation: error-in .18s ease both;
}
.next-login__message.is-visible { display: flex; }
.next-login__message svg { flex: 0 0 auto; }

.next-login__submit {
  width: 100%;
  height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 25px;
  color: #fff;
  background: #1f5da0;
  box-shadow: 0 10px 24px rgba(20,50,90,.35), inset 0 1px 0 rgba(255,255,255,.2);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, filter .14s ease;
}
.next-login__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 15px 32px rgba(20,50,90,.42), inset 0 1px 0 rgba(255,255,255,.24);
}
.next-login__submit:active:not(:disabled) { transform: scale(.97); }
.next-login__submit:disabled { background: #8fa6c2; cursor: default; }
.next-login__submit-inner { display: flex; align-items: center; justify-content: center; gap: 9px; }
.next-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.next-login__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.next-login__links a { color: #5a6472; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.next-login__links a:last-child { color: #9aa3af; font-weight: 500; }
.next-login__env {
  position: fixed;
  right: 14px;
  bottom: 14px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: rgba(255,255,255,.76);
  background: rgba(45,52,63,.28);
  font: 10px "IBM Plex Mono", monospace;
  letter-spacing: .08em;
}

*:focus-visible { outline: 2px solid #cfe0f2; outline-offset: 2px; }
@keyframes login-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes error-in { from { opacity: 0; transform: translateY(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .next-login { max-width: 420px; flex-direction: column; }
  .next-login__brand {
    flex: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 22px 26px;
  }
  .next-login__accent { display: none; }
  .next-login__form { padding: 28px 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

