/* 机店宝 - 登录/注册页（参考 SaaS 双栏布局） */
.auth-page {
  min-height: 100vh;
  display: flex;
}
.auth-page.rtl { direction: rtl; }
.auth-page.rtl .auth-brand-top { flex-direction: row-reverse; }
.auth-page.rtl .auth-features { direction: rtl; }
.auth-page.rtl .auth-feature { text-align: right; }
.auth-page.rtl .auth-form { text-align: right; }
.auth-page.rtl .auth-tabs { flex-direction: row-reverse; }
.auth-page.rtl .auth-lang { flex-direction: row-reverse; }

.auth-brand {
  flex: 1;
  min-width: 0;
  background: linear-gradient(160deg, #1a1d21 0%, #0d0f12 55%, #1a1d21 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand-top { display: flex; align-items: center; gap: 14px; }
.auth-brand-logo {
  width: 44px; height: 44px;
  background: #FFD700;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #1a1d21;
}
.auth-brand-name { font-size: 22px; font-weight: 700; line-height: 1.2; }
.auth-brand-pinyin { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 2px; }

.auth-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 480px; padding: 40px 0; }
.auth-hero h1 { font-size: 42px; font-weight: 800; line-height: 1.25; margin-bottom: 20px; letter-spacing: -0.5px; }
.auth-hero h1 .hl { color: #FFD700; display: block; }
.auth-hero-desc { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.8; margin-bottom: 36px; }

.auth-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 420px;
}
.auth-feature {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 18px 16px;
}
.auth-feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,215,0,.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  color: #FFD700;
}
.auth-feature-icon .ui-svg { display: block; }
.auth-feature-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.auth-feature-sub { font-size: 12px; color: rgba(255,255,255,.45); }

.auth-copy { font-size: 12px; color: rgba(255,255,255,.3); }

.auth-panel {
  width: 480px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 48px 56px;
  position: relative;
}
.auth-lang {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex; gap: 8px;
}
.auth-page.rtl .auth-lang { right: auto; left: 32px; }
.auth-lang a {
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  color: #666;
  border: 1px solid #eee;
}
.auth-lang a.active { background: #FFD700; color: #333; border-color: #FFD700; font-weight: 600; }

.auth-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 360px; margin: 0 auto; width: 100%; }
.auth-welcome { font-size: 28px; font-weight: 700; color: #1a1d21; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: #888; margin-bottom: 32px; }

.auth-tabs {
  display: flex;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #888;
  text-decoration: none;
  transition: .2s;
}
.auth-tab.active { background: #FFD700; color: #1a1d21; box-shadow: 0 2px 8px rgba(255,215,0,.35); }

.auth-field { margin-bottom: 18px; position: relative; }
.auth-field-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #bbb;
  pointer-events: none;
}
.auth-page.rtl .auth-field-icon { left: auto; right: 16px; }
.auth-input {
  width: 100%;
  height: 52px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 0 16px 0 48px;
  font-size: 15px;
  transition: .2s;
  box-sizing: border-box;
}
.auth-page.rtl .auth-input { padding: 0 48px 0 16px; }
.auth-input:focus { outline: none; border-color: #FFD700; box-shadow: 0 0 0 3px rgba(255,215,0,.15); }

.auth-submit {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFE135, #FFC107);
  color: #1a1d21;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: .2s;
}
.auth-submit:hover { opacity: .92; transform: translateY(-1px); }

.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: #999; }
.auth-footer a { color: #e67e22; text-decoration: none; font-weight: 500; }

.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}
.auth-alert-error { background: #fff0f0; color: #e74c3c; border: 1px solid #fadbd8; }
.auth-alert-success { background: #e8fff3; color: #00b894; border: 1px solid #b8f0d8; }

@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-panel { width: 100%; }
}
