/* 朱湘疆数竞工作室 · 辅助门户页（邀请码管理等）静奢白瓷样式 */
:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body:not(.atelier-body) {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  font: 15px/1.6 "WuWeiText", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #121826;
  background-color: #f6f6f4;
  background-image:
    radial-gradient(ellipse 68% 54% at 14% 8%, rgba(218, 233, 250, 0.56), transparent 64%),
    radial-gradient(ellipse 52% 46% at 88% 14%, rgba(243, 238, 229, 0.65), transparent 60%),
    linear-gradient(180deg, #fafaf8 0%, #f4f5f7 52%, #f6f6f4 100%);
}

body:not(.atelier-body) .panel {
  width: min(100%, 460px);
  padding: clamp(26px, 5vw, 38px);
  border: 1px solid rgba(18, 24, 38, 0.08);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 24px 56px -18px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  animation: panel-arrive 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panel-arrive {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

body:not(.atelier-body) .brand {
  display: block;
  width: min(65%, 210px);
  height: 40px;
  object-fit: contain;
  object-position: left;
}

body:not(.atelier-body) h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #121826;
}

body:not(.atelier-body) label {
  display: block;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 500;
  color: #435064;
}

body:not(.atelier-body) input:not([type=radio]):not([type=checkbox]) {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin-top: 7px;
  border: 1px solid rgba(18, 24, 38, 0.13);
  border-radius: 12px;
  background: #f8f9fb;
  color: #121826;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

body:not(.atelier-body) input:not([type=radio]):not([type=checkbox]):focus {
  background: #ffffff;
  border-color: #1d3e8a;
  box-shadow: 0 0 0 4px rgba(29, 62, 138, 0.09);
}

body:not(.atelier-body) input[type=checkbox] {
  accent-color: #1d3e8a;
}

body:not(.atelier-body) fieldset {
  padding: 0;
  border: none;
  margin: 0;
}

body:not(.atelier-body) fieldset label {
  display: inline-flex;
  gap: 6px;
  margin: 6px 24px 0 0;
}

body:not(.atelier-body) button {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 18px;
  border: 1px solid #111827;
  border-radius: 999px;
  background: linear-gradient(180deg, #1b2436 0%, #111827 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.atelier-body) button:hover:not(:disabled) {
  background: linear-gradient(180deg, #244a9e 0%, #1a387d 100%);
  border-color: #1a387d;
  transform: translateY(-1px);
}

body:not(.atelier-body) button:active:not(:disabled) {
  transform: scale(0.985);
}

body:not(.atelier-body) button:disabled {
  opacity: 0.6;
  cursor: wait;
}

body:not(.atelier-body) a {
  color: #1d3e8a;
  text-decoration: none;
  font-weight: 500;
}

body:not(.atelier-body) a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body:not(.atelier-body) .switch {
  margin-bottom: 0;
  text-align: center;
}

body:not(.atelier-body) #status {
  color: #435064;
  font-size: 13px;
}

body:not(.atelier-body) #message {
  color: #a73342;
}

body:not(.atelier-body) #message:not(:empty) {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(167, 51, 66, 0.08);
  line-height: 1.5;
  margin: 10px 0 12px;
}

body:not(.atelier-body) #message:empty {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
