*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:#1a1a2e;line-height:1.6;-webkit-font-smoothing:antialiased;
  min-height:100vh;background:#f5f7fb;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:none;background:none}
input{font:inherit;color:inherit}

.auth-page{
  min-height:100vh;display:grid;place-items:center;padding:24px;
  background:linear-gradient(135deg,#1e1b4b 0%,#312e81 45%,#4338ca 100%);
  position:relative;overflow:hidden;
}
.auth-page::before{
  content:"";position:absolute;top:-30%;right:-15%;width:700px;height:700px;
  background:radial-gradient(circle,rgba(99,102,241,.45) 0%,transparent 65%);
  border-radius:50%;pointer-events:none;
}
.auth-page::after{
  content:"";position:absolute;bottom:-25%;left:-10%;width:600px;height:600px;
  background:radial-gradient(circle,rgba(139,92,246,.35) 0%,transparent 65%);
  border-radius:50%;pointer-events:none;
}

.auth-card{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1fr 1fr;
  width:min(920px,100%);min-height:560px;
  background:#fff;border-radius:24px;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  animation:fadeUp .6s ease;
}
@keyframes fadeUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}

.auth-brand{
  position:relative;padding:48px 44px;color:#fff;
  background:linear-gradient(160deg,#4338ca 0%,#6366f1 55%,#8b5cf6 100%);
  display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;
}
.auth-brand::before{
  content:"";position:absolute;top:-60px;right:-60px;width:220px;height:220px;
  background:rgba(255,255,255,.08);border-radius:50%;
}
.auth-brand::after{
  content:"";position:absolute;bottom:-80px;left:-40px;width:180px;height:180px;
  background:rgba(255,255,255,.06);border-radius:50%;
}
.auth-brand-inner{position:relative;z-index:1}
.auth-brand-logo{display:flex;align-items:center;gap:12px;margin-bottom:44px}
.auth-brand-logo .logo-icon{
  width:52px;height:52px;border-radius:14px;
  background:rgba(255,255,255,.22);backdrop-filter:blur(8px);
  display:grid;place-items:center;font-size:24px;font-weight:800;
}
.auth-brand-logo .logo-text{font-size:20px;font-weight:700;letter-spacing:1px}
.auth-brand-title{font-size:32px;font-weight:800;line-height:1.3;margin-bottom:14px}
.auth-brand-desc{font-size:14px;opacity:.85;line-height:1.8}
.auth-brand-features{margin-top:36px;list-style:none;display:flex;flex-direction:column;gap:16px}
.auth-brand-features li{display:flex;align-items:center;gap:12px;font-size:13px;opacity:.9}
.auth-brand-features li::before{
  content:"✓";display:inline-grid;place-items:center;
  width:22px;height:22px;border-radius:50%;
  background:rgba(255,255,255,.25);font-size:12px;font-weight:700;flex-shrink:0;
}
.auth-brand-footer{font-size:12px;opacity:.6;position:relative;z-index:1}

.auth-form-wrap{display:flex;flex-direction:column;padding:48px 46px;background:#fff}
.auth-form-header{margin-bottom:28px}
.auth-form-title{font-size:28px;font-weight:800;color:#1e1b4b;margin-bottom:6px}
.auth-form-sub{font-size:13px;color:#6b7280}

.auth-tabs{
  position:relative;display:flex;background:#f1f5f9;border-radius:12px;padding:5px;margin-bottom:28px;
}
.auth-tab{
  flex:1;height:44px;border:none;background:transparent;border-radius:9px;
  font-size:14px;font-weight:600;color:#64748b;cursor:pointer;transition:all .25s ease;
}
.auth-tab.active{background:#fff;color:#4f46e5;box-shadow:0 2px 8px rgba(0,0,0,.08)}

.auth-panel{display:none}
.auth-panel.active{display:block;animation:fadeIn .35s ease}
@keyframes fadeIn{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}

.auth-field{margin-bottom:20px}
.auth-field label{display:block;font-size:13px;font-weight:600;color:#374151;margin-bottom:8px}
.auth-field .form-control{
  width:100%;height:48px;border:1.5px solid #e5e7eb;border-radius:10px;background:#f9fafb;
  font-size:14px;padding:0 16px;transition:all .2s ease;
}
.auth-field .form-control:focus{
  background:#fff;border-color:#6366f1;outline:none;
  box-shadow:0 0 0 4px rgba(99,102,241,.1);
}
.auth-field .form-control::placeholder{color:#9ca3af}

.auth-sms-row{display:grid;grid-template-columns:1fr 120px;gap:10px}
.auth-sms-row .btn-sms{
  height:48px;border:1.5px solid #e5e7eb;border-radius:10px;background:#f9fafb;
  font-size:13px;font-weight:600;color:#4f46e5;cursor:pointer;white-space:nowrap;transition:all .2s ease;
}
.auth-sms-row .btn-sms:hover{background:#eef2ff;border-color:#c7d2fe}

.auth-submit{
  width:100%;height:50px;border:none;border-radius:10px;
  background:linear-gradient(135deg,#4f46e5 0%,#6366f1 100%);
  color:#fff;font-size:15px;font-weight:700;letter-spacing:2px;
  cursor:pointer;transition:all .25s ease;margin-top:8px;
  box-shadow:0 4px 14px rgba(79,70,229,.3);
}
.auth-submit:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(79,70,229,.4)}
.auth-submit:active{transform:translateY(0)}

.auth-foot{
  display:flex;align-items:center;justify-content:center;gap:6px;
  margin-top:24px;font-size:13px;color:#6b7280;
}
.auth-foot a{color:#4f46e5;font-weight:600}
.auth-foot a:hover{text-decoration:underline}
.auth-foot .sep{color:#d1d5db}

.alert{padding:12px 16px;border-radius:10px;font-size:13px;margin-bottom:16px;border:1px solid transparent;animation:fadeIn .3s ease}
.alert-error{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.alert-success{background:#f0fdf4;color:#15803d;border-color:#bbf7d0}

@media(max-width:768px){
  .auth-card{grid-template-columns:1fr;min-height:auto;width:95vw}
  .auth-brand{padding:32px 28px;min-height:180px}
  .auth-brand-features{display:none}
  .auth-brand-title{font-size:22px}
  .auth-form-wrap{padding:32px 24px}
  .auth-form-title{font-size:22px}
}
