/* 登录/注册 · 手机端第二套样式（浅蓝背景 + 玻璃卡片） */

@media (min-width: 721px) {
  .auth-pro-mobile-top {
    display: none !important;
  }

  .auth-pro-field__icon,
  .auth-pro-field__toggle {
    display: none !important;
  }

  .auth-pro-field--icon {
    display: grid;
    gap: 7px;
  }

  .auth-pro-field--icon .auth-pro-field__label {
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 760;
  }

  .auth-pro-field--icon .auth-pro-field__box {
    display: block;
  }

  .auth-pro-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
  }

  .auth-pro-check--switch .auth-pro-check__switch {
    display: none !important;
  }

  .auth-pro-check--switch input[type="checkbox"] {
    position: static;
    opacity: 1;
    width: 16px;
    height: 16px;
    display: inline-block !important;
  }
}

@media (max-width: 720px) {
  body.page-auth:has(.auth-pro-page) {
    position: relative;
    overflow-x: hidden;
    background:
      radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 189, 248, 0.28), transparent 55%),
      radial-gradient(circle at 88% 18%, rgba(30, 128, 255, 0.12), transparent 28%),
      radial-gradient(circle at 8% 72%, rgba(99, 179, 237, 0.14), transparent 32%),
      linear-gradient(165deg, #dbeafe 0%, #eff6ff 42%, #f0f9ff 100%);
  }

  body.page-auth:has(.auth-pro-page)::before,
  body.page-auth:has(.auth-pro-page)::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
  }

  body.page-auth:has(.auth-pro-page)::before {
    width: 220px;
    height: 220px;
    top: 8%;
    right: -60px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
    opacity: 0.65;
  }

  body.page-auth:has(.auth-pro-page)::after {
    width: 180px;
    height: 180px;
    bottom: 18%;
    left: -50px;
    background: radial-gradient(circle, rgba(30, 128, 255, 0.2) 0%, transparent 72%);
    opacity: 0.5;
  }

  body.page-auth:has(.auth-pro-page) .app-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 28px, 420px);
    max-width: 420px;
    min-height: 100dvh;
    padding: max(10px, env(safe-area-inset-top, 0px)) 0 max(14px, env(safe-area-inset-bottom, 0px));
    align-content: center;
    justify-items: stretch;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    box-shadow: none;
  }

  body.page-auth:has(.auth-pro-page) .auth-pro-page {
    width: 100%;
  }

  .auth-pro-shell {
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
      0 20px 50px rgba(30, 64, 120, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    backdrop-filter: blur(16px) saturate(1.1);
    overflow: hidden;
  }

  .auth-pro-showcase {
    display: none;
  }

  .auth-pro-form-side {
    gap: 12px;
    padding: 14px 16px 16px;
    background: transparent;
  }

  .auth-pro-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 4px;
  }

  .auth-pro-mobile-top .auth-pro-mobile-brand {
    display: inline-grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    text-decoration: none;
  }

  .auth-pro-mobile-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: rgba(239, 246, 255, 0.92);
    color: #1e80ff;
    text-decoration: none;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
  }

  .auth-pro-mobile-support:active {
    background: #dbeafe;
  }

  .auth-pro-tabs {
    display: none;
  }

  .auth-pro-header {
    text-align: center;
    padding: 2px 4px 4px;
  }

  .auth-pro-header h2 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .auth-pro-header p {
    margin: 6px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
  }

  .auth-pro-form {
    gap: 12px;
  }

  .auth-pro-field--icon {
    gap: 6px;
  }

  .auth-pro-field__label {
    display: block;
    color: #475467;
    font-size: 12px;
    font-weight: 650;
  }

  .auth-pro-field__box {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  }

  .auth-pro-field__box:focus-within {
    border-color: var(--primary, #1e80ff);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 128, 255, 0.12);
  }

  .auth-pro-field__icon {
    width: 40px;
    height: 100%;
    min-height: 46px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    opacity: 0.72;
  }

  .auth-pro-field__icon--user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  }

  .auth-pro-field__icon--lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.8'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  }

  .auth-pro-field--icon .auth-pro-field__box input {
    height: 46px;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 12px 0 0;
    font-size: 16px;
  }

  .auth-pro-field--icon .auth-pro-field__box input:focus {
    box-shadow: none;
  }

  .auth-pro-field__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 46px;
    border: 0;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
  }

  .auth-pro-field__toggle .auth-pro-field__eye--hide {
    display: none;
  }

  .auth-pro-field__toggle[aria-pressed="true"] .auth-pro-field__eye--show {
    display: none;
  }

  .auth-pro-field__toggle[aria-pressed="true"] .auth-pro-field__eye--hide {
    display: block;
  }

  .auth-pro-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0 0;
  }

  .auth-pro-register-link {
    font-size: 13px;
    font-weight: 650;
    color: var(--primary, #1e80ff);
    text-decoration: none;
  }

  .auth-pro-register-link:active {
    opacity: 0.75;
  }

  .auth-pro-forgot {
    font-size: 13px;
    font-weight: 650;
    color: var(--primary, #1e80ff);
    text-decoration: none;
    white-space: nowrap;
  }

  .auth-pro-forgot:active {
    opacity: 0.75;
  }

  .auth-pro-submit {
    min-height: 50px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 48%, #38bdf8 100%);
    box-shadow: 0 10px 24px rgba(30, 128, 255, 0.28);
  }

  .auth-pro-login-bottom--desktop {
    display: none !important;
  }

  .auth-pro-social-login {
    display: grid;
    gap: 10px;
    margin-top: 2px;
  }

  .auth-pro-social-login--icons {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 8px;
  }

  .auth-pro-social-icon {
    width: 52px;
    height: 52px;
  }

  .auth-pro-social-btn {
    min-height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
  }

  /* 短信面板、验证码等保持原结构 */
  #loginPanelSms .auth-pro-field > span {
    display: block;
    font-size: 12px;
    font-weight: 650;
    color: #475467;
    margin-bottom: 6px;
  }

  #loginPanelSms .auth-pro-field input {
    height: 46px;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 16px;
  }

  .auth-pro-captcha-row {
    min-height: 46px;
    border-radius: 12px;
    background: #f8fafc;
  }

  .auth-pro-captcha-row input {
    min-height: 46px;
    font-size: 16px;
  }

  .auth-pro-check:not(.auth-pro-check--switch) {
    align-items: flex-start;
    gap: 8px;
  }

  .auth-pro-check:not(.auth-pro-check--switch) span {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .auth-pro-register .auth-pro-header h2 {
    font-size: 22px;
  }

  .auth-pro-register .auth-pro-switch {
    text-align: center;
    margin-top: 4px;
  }
}

@media (max-width: 420px) {
  body.page-auth:has(.auth-pro-page) .app-shell {
    width: min(100% - 24px, 100%);
    max-width: none;
  }

  .auth-pro-shell {
    border-radius: 18px;
  }

  .auth-pro-form-side {
    padding: 12px 14px 14px;
  }
}
