.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 65vh;
  padding-top: clamp(30px, 6vh, 80px);
  padding-bottom: 50px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 14px 50px #0000000a;
}
.auth-brand {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 30px;
}
.auth-card h1 {
  font-size: 25px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.auth-intro {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 25px;
}
.auth-field {
  margin-top: 17px;
}
.auth-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 10px 45px 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg, #10151d);
  color: var(--text, #e5ebf4);
  font: inherit;
  outline: none;
}
.auth-input-wrap input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 15%, transparent);
}
.auth-input-wrap input[aria-invalid='true'] {
  border-color: #e88181;
}
.auth-show-password {
  position: absolute;
  right: 7px;
  top: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted, #91a0b5);
  cursor: pointer;
}
.auth-show-password svg {
  width: 20px;
  height: 20px;
}
.auth-show-password:hover {
  color: var(--text, #e5ebf4);
  background: var(--panel, #202b38);
}
.auth-field-error {
  color: #dd7272;
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0;
  min-height: 0;
}
.auth-feedback {
  color: #dd7272;
  font-size: 13px;
  line-height: 1.6;
}
.auth-field-error:empty,
.auth-feedback:empty {
  display: none;
}
.auth-password-hint,
.auth-recovery-note {
  font-size: 12px;
  line-height: 1.7;
}
.auth-recovery-note {
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--bg, #10151d);
}
.auth-submit,
.auth-legacy {
  width: 100%;
  justify-content: center;
  min-height: 43px;
  margin-top: 12px;
  box-sizing: border-box;
}
.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  margin: 23px 0 0;
  color: var(--muted, #91a0b5);
}
.auth-switch a {
  color: var(--text, #e5ebf4);
  font-weight: 600;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted, #91a0b5);
  margin-top: 22px;
}
.auth-divider:before,
.auth-divider:after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-notice {
  font-size: 13px;
  line-height: 1.7;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg, #10151d);
}
.auth-card form[id^='auth-recovery-'] { display: grid; gap: 12px; padding: 15px 0; }
.auth-card form[id^='auth-recovery-'] + form { border-top: 1px solid var(--line); }
.auth-card form[id^='auth-recovery-'] label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.auth-card form[id^='auth-recovery-'] input { width: 100%; height: 43px; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.auth-card form[id^='auth-recovery-'] input:focus { border-color: var(--lime); outline: none; }
#auth-recovery-feedback { font-size: 13px; line-height: 1.5; }
@media (max-width: 480px) {
  .auth-page {
    padding: 24px 16px 36px;
  }
  .auth-card {
    border-radius: 10px;
    padding: 25px 21px;
  }
  .auth-card h1 {
    font-size: 23px;
  }
}
