/* ===============================
   Material 3 Expressive Dark Theme
   自定义登录系统 UI
================================ */

:root {
  --bg: #0b0f14;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);
  --stroke: rgba(255,255,255,.12);

  /* Expressive Accent */
  --primary: #7cdbff;
  --primary-2: #b6ffcf;
  --danger: #ff6b6b;

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --shadow-lg: 0 18px 60px rgba(0,0,0,.55);
  --shadow-md: 0 12px 28px rgba(0,0,0,.45);
  --shadow-sm: 0 8px 18px rgba(0,0,0,.35);

  --ring: 0 0 0 3px rgba(124,219,255,.22);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 15% 10%, rgba(124,219,255,.15), transparent 55%),
              radial-gradient(900px 500px at 85% 15%, rgba(182,255,207,.12), transparent 60%),
              radial-gradient(1100px 700px at 40% 90%, rgba(124,219,255,.10), transparent 60%),
              var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }

hr {
  border: 0;
  border-top: 1px solid var(--stroke);
  margin: 18px 0;
}

/* ===============================
   Material Symbols
================================ */

.material-symbols-rounded {
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
  vertical-align: middle;
}

/* ===============================
   Layout
================================ */

.center {
  min-height: 100%;
  display: grid;
  place-items: start center;
  padding: 32px;
  padding-top: 42px;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px;
}

/* ===============================
   Card
================================ */

.card {
  width: min(1320px, 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.05)
  );

  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(600px 300px at 15% 10%, rgba(124,219,255,.18), transparent 60%),
              radial-gradient(500px 260px at 85% 20%, rgba(182,255,207,.14), transparent 60%);
  pointer-events: none;
  opacity: .9;
}

.card > * { position: relative; }

/* ===============================
   Brand
================================ */

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,219,255,.25), rgba(182,255,207,.18));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow-sm);
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: .2px;
}

.brand p {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ===============================
   Panel
================================ */

.panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.panel h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

/* ===============================
   Form
================================ */

.form { display: grid; gap: 12px; }

.field { display: grid; gap: 8px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(124,219,255,.45);
  box-shadow: var(--ring);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

/* ===============================
   Buttons
================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: transform .06s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
}

.btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}

.btn:active { transform: translateY(1px); }

.btn.filled {
  background: linear-gradient(135deg, rgba(124,219,255,.95), rgba(182,255,207,.85));
  color: #081018;
  border-color: rgba(255,255,255,.0);
}

.btn.tonal {
  background: rgba(124,219,255,.10);
  border-color: rgba(124,219,255,.22);
}

.btn.danger {
  background: rgba(255,107,107,.12);
  border-color: rgba(255,107,107,.25);
}

/* ===============================
   Codebox / Toast
================================ */

.codebox {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.10);
  font-size: 13px;
  line-height: 1.35;
}

/* =============================
   Captcha
============================= */

.captcha-wrap {
  display: grid;
  gap: 12px;
}

.captcha-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.captcha-box {
  width: 140px;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  display: grid;
  place-items: center;
}

.captcha-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.range {
  width: min(680px, 100%);
}

.range input[type="range"] {
  width: 100%;
}

/* =============================
   ME 主页优化：桌面端右侧两列网格
============================= */

.me-left .panel{
  position: sticky;
  top: 18px;
}

.me-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

/* 让每个 panel 内容更“紧凑” */
.me-grid .panel{
  padding: 18px;
}

/* 标题更稳重一点 */
.me-grid .panel h3{
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

/* 让表单按钮更整齐 */
.me-grid .actions{
  justify-content: flex-start;
}

/* 上传按钮别太靠下 */
.me-grid input[type="file"]{
  padding: 10px 12px;
}

/* 移动端回落单列 */
@media (max-width: 1024px){
  .me-left .panel{ position: static; }
  .me-grid{ grid-template-columns: 1fr; }
}
