/* public/auth.css - 登录 / 注册页 */
.auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, .18), transparent 30%),
    radial-gradient(circle at 90% 82%, rgba(16, 185, 129, .12), transparent 28%),
    #080b14;
  color: #e8edf7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }

.auth-shell {
  width: min(1000px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 64px;
  padding: 42px 0;
}

.auth-card {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 38px 40px 30px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(20, 26, 43, .96), rgba(11, 15, 27, .97));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .46);
  backdrop-filter: blur(18px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.auth-brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .28);
  font-size: 21px;
}

.auth-brand strong, .auth-brand small { display: block; }
.auth-brand strong { font-size: 17px; letter-spacing: .4px; }
.auth-brand small { margin-top: 2px; color: #718096; font-size: 11px; letter-spacing: .8px; }

.auth-heading { margin: 30px 0 22px; }
.auth-heading h1 { margin: 0; color: #f7f9fc; font-size: 30px; line-height: 1.25; }
.auth-heading p { margin: 9px 0 0; color: #8996ab; font-size: 14px; }

.auth-message {
  display: none;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(248, 113, 113, .25);
  border-radius: 10px;
  background: rgba(127, 29, 29, .2);
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.5;
}
.auth-message.show { display: block; }
.auth-message.success {
  border-color: rgba(52, 211, 153, .25);
  background: rgba(6, 78, 59, .24);
  color: #6ee7b7;
}

.auth-form { display: flex; flex-direction: column; }
.auth-form label {
  margin: 0 0 7px;
  color: #b9c3d4;
  font-size: 13px;
  font-weight: 600;
}
.auth-form label:not(:first-child) { margin-top: 17px; }

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 47px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 11px;
  background: rgba(4, 8, 17, .62);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.auth-input-wrap:focus-within {
  border-color: rgba(59, 130, 246, .75);
  background: rgba(4, 8, 17, .82);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .13);
}
.auth-input-wrap > span {
  flex: 0 0 auto;
  margin-left: 14px;
  opacity: .62;
  font-size: 15px;
}
.auth-input-wrap input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f5f9;
  font: inherit;
  font-size: 14px;
}
.auth-input-wrap input::placeholder { color: #536074; }
.auth-eye {
  flex: 0 0 auto;
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #778398;
  cursor: pointer;
  font-size: 16px;
}
.auth-eye:hover { color: #cbd5e1; }

.auth-submit {
  position: relative;
  height: 48px;
  margin-top: 25px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb, #0e7490);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .25);
  transition: transform .15s, filter .15s, opacity .15s;
}
.auth-submit:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.auth-submit:active:not(:disabled) { transform: translateY(0); }
.auth-submit:disabled { cursor: wait; opacity: .72; }
.auth-spinner { display: none; }
.auth-submit.loading .auth-submit-text { opacity: 0; }
.auth-submit.loading .auth-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  display: block;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-switch {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  color: #778398;
  text-align: center;
  font-size: 13px;
}
.auth-switch a { color: #60a5fa; text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-home-link {
  display: block;
  margin-top: 18px;
  color: #68758a;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}
.auth-home-link:hover { color: #aab5c6; }

.auth-aside {
  position: relative;
  min-height: 500px;
  padding: 55px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .12);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 31, 54, .86), rgba(6, 20, 33, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 30px 80px rgba(0, 0, 0, .25);
}
.auth-aside-content { position: relative; z-index: 2; }
.auth-aside-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 28px;
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 18px;
  background: rgba(37, 99, 235, .16);
  font-size: 30px;
}
.auth-aside h2 { margin: 0; color: #f1f5f9; font-size: 28px; line-height: 1.35; }
.auth-aside p { max-width: 360px; margin: 16px 0 28px; color: #8fa0b8; font-size: 14px; line-height: 1.8; }
.auth-feature-list { display: flex; flex-direction: column; gap: 12px; color: #b9c8dc; font-size: 13px; }

.auth-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(59, 130, 246, .14); }
.auth-orbit-one { width: 340px; height: 340px; right: -130px; top: -110px; box-shadow: 0 0 80px rgba(37, 99, 235, .08); }
.auth-orbit-two { width: 220px; height: 220px; right: -70px; top: -50px; }

@media (max-width: 820px) {
  .auth-shell { width: min(100% - 28px, 520px); grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .auth-aside { display: none; }
  .auth-card { padding: 30px 24px 25px; }
  .auth-heading h1 { font-size: 26px; }
}

@media (max-width: 430px) {
  .auth-shell { width: calc(100% - 20px); }
  .auth-card { padding: 25px 19px 22px; border-radius: 17px; }
}
