:root {
  --bg: #0d1117;
  --panel: rgba(16, 20, 28, 0.55);
  --text: #e6edf3;
  --muted: #c8d0d8;
  --accent: #f85149;
  --line: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: "Microsoft YaHei", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(8, 10, 14, 0.42), rgba(8, 10, 14, 0.58)),
    url("BG.jpg"),
    radial-gradient(circle at top, rgba(248, 81, 73, 0.18), transparent 45%),
    linear-gradient(180deg, #11161d, var(--bg));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.login-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
  width: min(96vw, 920px);
}

.panel,
.notice-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.panel {
  position: relative;
  flex: 1 1 320px;
  max-width: 380px;
  width: min(92vw, 380px);
  padding: 28px 24px;
  overflow: visible;
}

.panel.has-notice-toggle {
  padding-top: 48px;
}

.notice-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.45);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.notice-toggle:hover,
.login-shell.is-notice-open .notice-toggle {
  border-color: var(--accent);
}

.recharge-flee {
  position: absolute;
  z-index: 5;
  left: 24px;
  bottom: 56px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid #d4a017;
  border-radius: 8px;
  background: #d4a017;
  background: linear-gradient(180deg, #f0c14b, #d4a017);
  color: #1a1200;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: left 0.1s ease-out, top 0.1s ease-out;
  -ms-user-select: none;
  user-select: none;
  white-space: nowrap;
}

.recharge-flee:hover {
  background: #f0c14b;
  background: linear-gradient(180deg, #f5d06a, #e0b020);
}

.notice-panel {
  display: none;
  flex: 1 1 320px;
  max-width: 420px;
  width: min(92vw, 420px);
  padding: 28px 24px;
}

.login-shell.is-notice-open .notice-panel,
.login-shell.is-notice-always .notice-panel {
  display: block;
}

.notice-panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.notice-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.notice-list {
  margin: 0;
  padding-left: 1.25em;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.notice-list li {
  margin-bottom: 12px;
}

.notice-list li:last-child {
  margin-bottom: 0;
}

.notice-list strong {
  color: #ff7b72;
  font-weight: 700;
}

@media (max-width: 768px) {
  .login-shell {
    flex-direction: column;
    align-items: center;
  }

  .panel,
  .notice-panel {
    max-width: min(92vw, 420px);
    width: 100%;
  }
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.subtitle, .footer {
  color: var(--muted);
  font-size: 14px;
}

.cache-bust-box {
  margin: 16px 0 8px;
  text-align: left;
}
.cache-bust-btn {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.45);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.cache-bust-btn:hover {
  border-color: var(--accent);
}
.cache-bust-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 1.2em;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

label {
  font-size: 13px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.45);
  color: var(--text);
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.agree-row input {
  width: auto;
  margin: 2px 0 0;
  padding: 0;
}

input:focus {
  outline: none;
  border-color: rgba(248, 81, 73, 0.7);
}

button {
  margin-top: 8px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.error {
  margin-top: 12px;
  color: #ff7b72;
  font-size: 14px;
}

a { color: #ff7b72; }
