*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--sd-font);
  color: var(--sd-dark-500);
  background: var(--sd-page);
}

[hidden] {
  display: none !important;
}

.sd-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  background: var(--sd-white);
  border-bottom: 1px solid var(--sd-silver-400);
}

.sd-header img {
  display: block;
  width: 181px;
  height: 36px;
}

.sd-main {
  display: flex;
  justify-content: center;
  padding: 48px 16px 80px;
}

.sd-card {
  width: 400px;
  max-width: 100%;
  background: var(--sd-white);
  border: 1px solid var(--sd-silver-400);
  border-radius: var(--sd-radius);
  padding: 32px;
}

.sd-view h1 {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  text-align: center;
  color: var(--sd-dark-500);
}

.sd-field {
  margin-bottom: 16px;
}

.sd-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--sd-dark-300);
}

.sd-input,
.sd-input-wrap {
  width: 100%;
  height: 40px;
  border: 1px solid var(--sd-silver-500);
  border-radius: var(--sd-radius);
  background: var(--sd-white);
}

.sd-input {
  display: block;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--sd-dark-500);
  outline: none;
  appearance: none;
  box-shadow: none;
}

.sd-input-wrap {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

.sd-input-wrap .sd-input {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sd-input-wrap .sd-input:focus {
  border: 0;
  box-shadow: none;
}

.sd-input:focus {
  border-color: var(--sd-blue-500);
  box-shadow: 0 0 0 1px var(--sd-blue-500);
}

.sd-input-wrap:focus-within {
  border-color: var(--sd-blue-500);
  box-shadow: 0 0 0 1px var(--sd-blue-500);
}

.sd-input:-webkit-autofill,
.sd-input-wrap .sd-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--sd-white) inset;
  box-shadow: 0 0 0 40px var(--sd-white) inset;
  border-radius: 0;
}

.sd-eye {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sd-dark-100);
  cursor: pointer;
}

.sd-eye svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.sd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin: 8px 0 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--sd-radius);
  background: var(--sd-blue-500);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}

.sd-btn:hover {
  background: var(--sd-blue-600);
}

.sd-btn[disabled] {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.sd-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--sd-blue-500);
  border-left-width: 4px;
  border-radius: var(--sd-radius);
  background: var(--sd-blue-50);
  font-size: 14px;
  line-height: 20px;
}

.sd-alert p {
  margin: 0;
}

.sd-alert-error {
  border-color: var(--sd-red-500);
  background: #fff5f4;
  color: var(--sd-dark-500);
}

.sd-timer {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--sd-dark-300);
}

.sd-timer strong,
.sd-timer .timer-countdown {
  font-weight: 600;
  color: var(--sd-blue-600);
}

.sd-resend {
  border: 0;
  padding: 0;
  background: none;
  color: var(--sd-blue-600);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 600px) {
  .sd-main {
    padding-top: 24px;
  }

  .sd-card {
    padding: 24px 20px;
  }

  .sd-view h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .sd-input,
  .sd-input-wrap .sd-input,
  .sd-btn {
    font-size: 16px;
    line-height: 24px;
  }
}
