/* 登录 / 注册页共用样式 */
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{
  --bg:#0b1020; --card:#151b2e; --line:rgba(255,255,255,.08);
  --txt:#e8ecf6; --sub:#8b96b0; --blue:#3b82f6; --cyan:#22d3ee;
}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft Yahei",sans-serif;
  background:var(--bg); color:var(--txt);
  display:flex; align-items:center; justify-content:center;
  min-height:100vh; padding:20px;
  background-image:radial-gradient(circle at 15% 10%,rgba(59,130,246,.22),transparent 45%),
                   radial-gradient(circle at 85% 90%,rgba(34,211,238,.18),transparent 45%);
  overflow-x:hidden;
}

/* ---------- 卡片 ---------- */
.wrap{width:100%;max-width:400px}
.logo{text-align:center;margin-bottom:26px}
.logo .dot{
  width:52px;height:52px;margin:0 auto 14px;border-radius:16px;
  background:linear-gradient(135deg,#3b82f6,#22d3ee);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 30px rgba(59,130,246,.4);
}
.logo .dot svg{width:26px;height:26px;fill:#fff}
.logo h1{font-size:21px;font-weight:600;letter-spacing:.5px}
.logo p{font-size:12.5px;color:var(--sub);margin-top:6px}

.panel{
  background:rgba(21,27,46,.86);border:1px solid var(--line);
  border-radius:18px;padding:22px 20px 20px;
  backdrop-filter:blur(14px);
  box-shadow:0 20px 50px rgba(0,0,0,.45);
}
.ptitle{
  font-size:14px;font-weight:600;color:var(--txt);
  margin-bottom:18px;padding-left:10px;position:relative;
}
.ptitle::before{
  content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:3px;height:14px;border-radius:2px;
  background:linear-gradient(135deg,#3b82f6,#22d3ee);
}

.field{margin-bottom:14px;position:relative}
.field label{display:block;font-size:12px;color:var(--sub);margin-bottom:7px}
.field input{
  width:100%;height:44px;border-radius:11px;
  background:rgba(255,255,255,.045);border:1px solid var(--line);
  color:var(--txt);font-size:14px;padding:0 13px;font-family:inherit;
  transition:.2s;outline:none;
}
.field input::placeholder{color:#5b6480}
.field input:focus{border-color:rgba(59,130,246,.7);background:rgba(59,130,246,.08)}

.btn{
  width:100%;height:46px;border:0;border-radius:12px;cursor:pointer;
  background:linear-gradient(135deg,#3b82f6,#22d3ee);color:#fff;
  font-size:15px;font-weight:600;font-family:inherit;letter-spacing:.5px;
  box-shadow:0 10px 24px rgba(59,130,246,.34);transition:.2s;
}
.btn:active{transform:scale(.985)}
.btn[disabled]{opacity:.6;cursor:not-allowed}

.tip{
  margin-top:13px;font-size:12.5px;text-align:center;
  min-height:18px;color:#f87171;
}
.tip.ok{color:#34d399}

/* 底部互跳链接 */
.switch{
  margin-top:16px;padding-top:15px;border-top:1px solid var(--line);
  text-align:center;font-size:12.5px;color:var(--sub);
}
.switch a{
  color:#7dd3fc;text-decoration:none;margin-left:3px;
  border-bottom:1px dashed rgba(125,211,252,.4);padding-bottom:1px;
}
.switch a:hover{color:#22d3ee}
