:root {
  color-scheme: light;
  --ink: #171914;
  --muted: #777a71;
  --lime: #baff3c;
  --paper: rgba(255, 255, 252, .92);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(186, 255, 60, .28), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(128, 108, 255, .20), transparent 34%),
    linear-gradient(145deg, #fafbf3 0%, #f4f1e9 100%);
}

button, input { font: inherit; }
button { color: inherit; }

.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.login-card {
  width: min(440px, 100%);
  padding: 30px;
  border: 1px solid rgba(31, 34, 28, .08);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(53, 50, 40, .12);
  backdrop-filter: blur(18px);
}

.login-header { display: flex; align-items: center; gap: 17px; margin-bottom: 30px; }
.login-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 19px;
  background: #171914;
  box-shadow: 0 12px 24px rgba(23, 25, 20, .17);
}
.login-mark::before { content: ""; width: 28px; height: 28px; border: 3px solid var(--lime); border-radius: 50%; }
.login-mark::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.login-mark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #171914; }
.login-header p { margin: 0 0 6px; color: #999c92; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.login-header h1 { margin: 0; font-size: 28px; letter-spacing: -.045em; }
.login-header div > span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.login-field { display: grid; gap: 9px; margin-bottom: 18px; }
.login-field > span:first-child { color: #60635b; font-size: 13px; font-weight: 700; }
.login-field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(31, 34, 28, .11);
  border-radius: 14px;
  outline: 0;
  color: #33362f;
  background: #f8f7f2;
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.login-field input::placeholder { color: #adafa8; }
.login-field input:focus { border-color: #8d7be9; background: white; box-shadow: 0 0 0 4px rgba(128, 108, 255, .10); }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 68px; }
.password-control button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 52px;
  height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 11px;
  color: #65685f;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.password-control button:hover, .password-control button:focus-visible { background: #ecebe5; outline: 0; }
.login-status { min-height: 21px; margin: -2px 0 11px; color: #b74e48; font-size: 13px; line-height: 1.55; }
.login-status.is-neutral { color: #74776e; }
.login-submit {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 0 20px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: #191b17;
  box-shadow: 0 12px 24px rgba(25, 27, 23, .16);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.login-submit i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #20251a; background: var(--lime); font-size: 17px; font-style: normal; }
.login-submit:hover { background: #0e0f0d; }
.login-submit:focus-visible { outline: 3px solid rgba(128, 108, 255, .28); outline-offset: 3px; }
.login-submit:disabled { cursor: wait; opacity: .68; }
.login-card footer { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; color: #8d9087; font-size: 11px; line-height: 1.55; }
.secure-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: #69c947; box-shadow: 0 0 0 4px rgba(105, 201, 71, .10); }

@media (max-width: 520px) {
  .login-page { align-items: stretch; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .login-card { align-self: center; padding: 24px 20px; border-radius: 23px; }
  .login-header { align-items: flex-start; margin-bottom: 26px; }
  .login-mark { width: 52px; height: 52px; border-radius: 17px; }
  .login-header h1 { font-size: 25px; }
  .login-header div > span { font-size: 12px; }
  .login-field { margin-bottom: 16px; }
  .login-field input, .login-submit { min-height: 54px; }
}

@media (max-width: 360px) {
  .login-card { padding-inline: 17px; }
  .login-header { gap: 13px; }
  .login-mark { width: 48px; height: 48px; }
  .login-header h1 { font-size: 23px; }
}

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


@media (max-height: 620px) {
  .login-page { align-items: start; }
  .login-card { align-self: start; }
}
