* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Inter,
    Roboto,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(96, 140, 255, .10),
      transparent 38%
    ),
    #f5f7fa;

  color: #18202b;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    max(24px, env(safe-area-inset-top))
    20px
    max(24px, env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 410px;

  padding: 38px 34px 26px;

  border: 1px solid rgba(20, 35, 55, .07);
  border-radius: 24px;

  background: rgba(255,255,255,.90);

  box-shadow:
    0 24px 70px rgba(21, 32, 50, .10),
    0 2px 7px rgba(21, 32, 50, .04);

  backdrop-filter: blur(20px);

  animation: cardIn .45s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.logo {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 23px;

  border-radius: 17px;

  background: #f0f4ff;
}

.logo svg {
  width: 28px;
  height: 28px;

  fill: none;
  stroke: #4774e7;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heading {
  text-align: center;
  margin-bottom: 28px;
}

.heading h1 {
  margin: 0 0 8px;

  font-size: 25px;
  line-height: 1.2;

  font-weight: 650;
  letter-spacing: -.4px;
}

.heading p {
  margin: 0;

  color: #737d8c;
  font-size: 14px;
  line-height: 1.5;
}

.field label {
  display: block;

  margin-bottom: 8px;

  color: #586271;

  font-size: 13px;
  font-weight: 550;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  height: 50px;

  padding: 0 48px 0 15px;

  border: 1px solid #dce1e8;
  border-radius: 13px;

  outline: none;

  background: #fff;
  color: #1c2530;

  transition:
    border .15s ease,
    box-shadow .15s ease;
}

.password-wrap input::placeholder {
  color: #adb4be;
}

.password-wrap input:focus {
  border-color: #7594e9;
  box-shadow: 0 0 0 4px rgba(71,116,231,.09);
}

.eye {
  position: absolute;

  right: 8px;
  top: 50%;

  width: 36px;
  height: 36px;

  transform: translateY(-50%);

  border: 0;
  border-radius: 9px;

  background: transparent;

  cursor: pointer;
}

.eye svg {
  width: 19px;
  height: 19px;

  fill: none;
  stroke: #8a93a0;
  stroke-width: 1.7;
}

.primary,
.secondary {
  width: 100%;
  height: 49px;

  border-radius: 13px;

  cursor: pointer;

  transition:
    transform .12s ease,
    opacity .12s ease,
    background .12s ease;
}

.primary {
  margin-top: 18px;

  border: 0;

  background: #315fd6;
  color: #fff;

  font-weight: 600;

  box-shadow: 0 7px 18px rgba(49,95,214,.18);
}

.primary:hover {
  background: #2855ca;
}

.primary:active,
.secondary:active {
  transform: scale(.985);
}

.primary:disabled {
  cursor: default;
  opacity: .65;
}

.secondary {
  margin-top: 18px;

  border: 1px solid #dfe4ea;

  background: #fff;
  color: #586271;

  font-weight: 550;
}

.secondary:hover {
  background: #f7f8fa;
}

.notice {
  margin: -9px 0 17px;

  padding: 11px 13px;

  border-radius: 11px;

  background: #fff1f1;
  color: #bf3c3c;

  font-size: 13px;
  line-height: 1.45;
}

.notice.ok {
  background: #effaf3;
  color: #25854b;
}

.approval {
  display: flex;
  align-items: center;

  gap: 16px;

  padding: 18px;

  border: 1px solid #e3e7ec;
  border-radius: 15px;

  background: #fafbfc;
}

.approval strong {
  display: block;

  margin-bottom: 4px;

  font-size: 14px;
  font-weight: 600;
}

.approval p {
  margin: 0;

  color: #7b8491;

  font-size: 12.5px;
  line-height: 1.45;
}

.spinner {
  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #edf2ff;
}

.spinner span {
  width: 18px;
  height: 18px;

  border: 2px solid rgba(49,95,214,.20);
  border-top-color: #315fd6;

  border-radius: 50%;

  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.countdown {
  min-height: 20px;

  margin-top: 15px;

  text-align: center;

  color: #8b939f;

  font-size: 12px;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 6px;

  margin-top: 28px;

  color: #a0a7b1;

  font-size: 11.5px;
}

.footer svg {
  width: 13px;
  height: 13px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .page {
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .card {
    padding: 32px 24px 23px;
    border-radius: 21px;
  }
}
