.sd-login-page {
  min-height: 100dvh;
  background: #f8fafc;
  color: #0f172a;
}

.sd-login {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: calc(32px + env(safe-area-inset-top, 0)) 20px calc(32px + env(safe-area-inset-bottom, 0));
}

.sd-login__back {
  display: inline-block;
  margin: 0 0 14px;
  color: #0d9488;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.sd-login__back:active {
  color: #0f766e;
}

.sd-login__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  padding: 28px 22px 24px;
}

.sd-login__brand {
  text-align: center;
  margin: 0 0 28px;
}

.sd-login__logo {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
}

.sd-login__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sd-login__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.sd-login__lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #475569;
  text-align: center;
}

.sd-login__methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sd-login__methods[hidden] {
  display: none !important;
}

.sd-login__method,
.sd-login__submit {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.sd-login__method {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sd-login__method:active {
  border-color: #0d9488;
  color: #0f766e;
}

.sd-login__form {
  display: flex;
  flex-direction: column;
}

.sd-login__form[hidden] {
  display: none !important;
}

.sd-login__chosen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  font-size: 13px;
  color: #475569;
}

.sd-login__link {
  border: 0;
  background: none;
  padding: 0;
  color: #0d9488;
  font-weight: 700;
  cursor: pointer;
}

.sd-login__label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.sd-login__input {
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
}

.sd-login__input:focus {
  outline: 2px solid rgba(13, 148, 136, 0.35);
  border-color: #0d9488;
}

.sd-login__submit {
  margin-top: 4px;
  border: 0;
  background: #0d9488;
  color: #ffffff;
}

.sd-login__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.sd-login__error {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
}
