/**
 * 国际宋瓷协会（SICS）— 管理后台登录页
 * 全屏左右分栏 · 朱印 Logo · 青瓷动效
 */
:root {
  --sics-celadon: #5d8a7a;
  --sics-celadon-deep: #3d6b5c;
  --sics-celadon-light: #8fb5a6;
  --sics-celadon-mist: #d9e8e3;
  --sics-seal: #b83228;
  --sics-bronze: #a68b5b;
  --sics-ink: #2c3e35;
  --sics-navy: #2c3e50;
  --sics-text: #3a4540;
  --sics-text-2: #6b7a72;
  --sics-border: #d8e4de;
  --sics-bg: #f4f1eb;
  --sics-radius-lg: 20px;
  --sics-radius: 12px;
  --sics-radius-sm: 10px;
  --sics-shadow: 0 20px 56px rgba(44, 62, 53, 0.16);
  --sics-shadow-soft: 0 10px 28px rgba(44, 62, 53, 0.1);
}

/* —— 页面基底 —— */
.sics-login {
  min-height: 100vh;
  margin: 0;
  background: var(--sics-bg);
  position: relative;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", -apple-system, sans-serif;
  color: var(--sics-text);
}

.sics-login * {
  box-sizing: border-box;
}

/* 极光背景 */
.sics-login__aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 20% 30%, rgba(143, 181, 166, 0.35), transparent 60%),
    radial-gradient(ellipse 55% 45% at 75% 65%, rgba(184, 50, 40, 0.08), transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(93, 138, 122, 0.15), transparent 50%);
  animation: sicsAurora 14s ease-in-out infinite alternate;
}

@keyframes sicsAurora {
  0%   { opacity: 0.7; transform: scale(1) translateY(0); }
  100% { opacity: 1;   transform: scale(1.04) translateY(-12px); }
}

.sics-login__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.4), transparent 42%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.25), transparent 40%);
}

.sics-login__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 48px,
    rgba(61, 107, 92, 0.35) 48px,
    rgba(61, 107, 92, 0.35) 49px
  );
}

/* 浮动光点 */
.sics-login__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sics-login__particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(93, 138, 122, 0.35);
  box-shadow: 0 0 12px rgba(143, 181, 166, 0.5);
  animation: sicsParticle 18s ease-in-out infinite;
}

.sics-login__particles span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.sics-login__particles span:nth-child(2) { left: 68%; top: 15%; animation-delay: -4s; width: 4px; height: 4px; }
.sics-login__particles span:nth-child(3) { left: 45%; top: 72%; animation-delay: -8s; background: rgba(184, 50, 40, 0.25); }
.sics-login__particles span:nth-child(4) { left: 82%; top: 58%; animation-delay: -12s; width: 5px; height: 5px; }
.sics-login__particles span:nth-child(5) { left: 28%; top: 48%; animation-delay: -6s; }

@keyframes sicsParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50%      { transform: translate(20px, -30px) scale(1.3); opacity: 0.9; }
}

.sics-orbits {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}

.sics-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(93, 138, 122, 0.15);
  animation: sicsDrift 22s ease-in-out infinite;
}

.sics-orbit.--o1 {
  width: 420px;
  height: 420px;
  left: -8%;
  top: 5%;
  animation-duration: 28s;
}

.sics-orbit.--o2 {
  width: 260px;
  height: 260px;
  left: 28%;
  bottom: 8%;
  animation-duration: 22s;
  animation-delay: -6s;
}

.sics-orbit.--o3 {
  width: 160px;
  height: 160px;
  right: 38%;
  top: 18%;
  background: radial-gradient(circle, rgba(143, 181, 166, 0.18), transparent 68%);
  border: 0;
  animation-duration: 18s;
}

.sics-orbit.--o4 {
  width: 100px;
  height: 100px;
  right: 42%;
  bottom: 22%;
  border-color: rgba(184, 50, 40, 0.12);
  animation-duration: 16s;
  animation-delay: -3s;
}

@keyframes sicsDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  33%       { transform: translate3d(14px, -18px, 0) rotate(2deg); }
  66%       { transform: translate3d(-8px, 10px, 0) rotate(-1deg); }
}

/* —— 左右分栏主结构 —— */
.sics-login__split {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
}

/* 左侧品牌区 */
.sics-login__brand {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(217, 232, 227, 0.55) 0%, rgba(244, 241, 235, 0.3) 50%, transparent 100%),
    linear-gradient(180deg, transparent 60%, rgba(93, 138, 122, 0.06) 100%);
  border-right: 1px solid rgba(93, 138, 122, 0.12);
  animation: sicsSlideLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sicsSlideLeft {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sics-brand__deco-char {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "STSong", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: clamp(200px, 28vw, 360px);
  font-weight: 700;
  color: rgba(93, 138, 122, 0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: sicsCharBreath 8s ease-in-out infinite;
}

@keyframes sicsCharBreath {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateY(-50%) scale(1.03); }
}

.sics-brand__stage {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
}

/* Logo 动效区 */
.sics-brand__logo-wrap {
  position: relative;
  width: 108px;
  height: 108px;
  margin-bottom: 32px;
  animation: sicsLogoEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes sicsLogoEnter {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.sics-brand__logo-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 50, 40, 0.22), transparent 70%);
  animation: sicsGlowPulse 3s ease-in-out infinite;
}

@keyframes sicsGlowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.12); }
}

.sics-brand__logo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(93, 138, 122, 0.3);
  animation: sicsRingSpin 12s linear infinite;
}

.sics-brand__logo-ring.--r2 {
  inset: -22px;
  border-color: rgba(93, 138, 122, 0.15);
  border-style: dashed;
  animation-duration: 20s;
  animation-direction: reverse;
}

@keyframes sicsRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.sics-brand__logo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(184, 50, 40, 0.28);
  animation: sicsLogoFloat 5s ease-in-out infinite;
}

@keyframes sicsLogoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.sics-brand__title {
  margin: 0 0 8px;
  font-family: "Noto Serif SC", "STSong", "Songti SC", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  color: var(--sics-ink);
  animation: sicsFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.sics-brand__en {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sics-text-2);
  letter-spacing: 0.06em;
  animation: sicsFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.sics-brand__tagline {
  margin: 0 0 14px;
  font-family: "STSong", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--sics-celadon-deep);
  animation: sicsFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.sics-brand__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--sics-text-2);
  font-weight: 600;
  animation: sicsFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

@keyframes sicsFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sics-brand__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.sics-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--sics-shadow-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--sics-text-2);
  opacity: 0;
  animation: sicsPillIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(0.6s + var(--i, 0) * 0.1s) both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sics-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--sics-shadow);
}

@keyframes sicsPillIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sics-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sics-celadon);
}

.sics-dot.--bronze { background: var(--sics-bronze); }
.sics-dot.--light  { background: var(--sics-celadon-light); }
.sics-dot.--seal   { background: var(--sics-seal); }

.sics-brand__stats {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(93, 138, 122, 0.15);
}

.sics-stat {
  flex: 1;
  opacity: 0;
  animation: sicsFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(1s + var(--i, 0) * 0.12s) both;
}

.sics-stat__val {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--sics-celadon-deep);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.sics-stat__lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--sics-text-2);
}

/* 右侧登录区 */
.sics-login__panel {
  flex: 0 0 42%;
  max-width: 520px;
  min-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: sicsSlideRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes sicsSlideRight {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: translateX(0); }
}

.sics-panel__card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px 24px;
  border-radius: var(--sics-radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    var(--sics-shadow),
    0 0 0 1px rgba(93, 138, 122, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.sics-panel__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(93, 138, 122, 0.25), transparent 40%, rgba(184, 50, 40, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.sics-panel__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sics-border);
}

.sics-panel__logo-sm {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(184, 50, 40, 0.18);
}

.sics-panel__logo-sm img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sics-panel__head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--sics-ink);
}

.sics-panel__head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--sics-text-2);
  font-weight: 600;
}

/* 提示框 */
.sics-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: var(--sics-radius-sm);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.sics-alert--error {
  background: rgba(184, 50, 40, 0.08);
  border: 1px solid rgba(184, 50, 40, 0.22);
  color: #8b3a32;
}

.sics-alert--error .fa {
  margin-top: 2px;
  flex-shrink: 0;
}

/* 表单 */
.sics-field {
  margin: 14px 0;
}

.sics-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sics-input-wrap--flex {
  flex: 1;
  min-width: 0;
}

.sics-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sics-celadon);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.sics-input-wrap .sics-input {
  padding-left: 40px;
  padding-right: 40px;
}

.sics-input-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sics-text-2);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.sics-input-toggle:hover {
  color: var(--sics-celadon-deep);
  background: rgba(93, 138, 122, 0.1);
}

.sics-captcha-img {
  height: 42px;
  width: 110px;
  border-radius: 10px;
  border: 1px solid var(--sics-border);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sics-captcha-img:hover {
  border-color: var(--sics-celadon);
  box-shadow: 0 0 0 3px rgba(93, 138, 122, 0.12);
}

.sics-captcha-refresh {
  font-size: 12px;
  font-weight: 700;
  color: var(--sics-celadon-deep);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s ease;
}

.sics-captcha-refresh:hover {
  color: var(--sics-seal);
  text-decoration: underline;
}

.sics-label {
  display: block;
  font-size: 12px;
  color: var(--sics-text-2);
  margin-bottom: 6px;
  font-weight: 700;
}

.sics-input {
  width: 100%;
  height: 44px;
  border-radius: var(--sics-radius-sm);
  border: 1px solid var(--sics-border);
  padding: 0 14px;
  outline: none;
  background: #fff;
  color: var(--sics-text);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sics-input:focus {
  border-color: var(--sics-celadon);
  box-shadow: 0 0 0 4px rgba(93, 138, 122, 0.16);
  transform: translateY(-1px);
}

.sics-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sics-row .sics-input {
  flex: 1;
}

.sics-btn {
  position: relative;
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--sics-radius);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.22em;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(105deg, var(--sics-celadon-deep), var(--sics-celadon));
  box-shadow: 0 12px 32px rgba(61, 107, 92, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sics-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(61, 107, 92, 0.34);
}

.sics-btn:active:not(:disabled) {
  transform: translateY(0);
}

.sics-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.sics-btn--loading .sics-btn__txt {
  opacity: 0;
}

.sics-btn__loader {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sicsSpin 0.7s linear infinite;
}

.sics-btn--loading .sics-btn__loader {
  display: block;
}

@keyframes sicsSpin {
  to { transform: rotate(360deg); }
}

.sics-btn__txt {
  position: relative;
  z-index: 1;
}

.sics-btn__shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: sicsBtnShine 4s ease-in-out infinite;
}

@keyframes sicsBtnShine {
  0%, 70%, 100% { left: -100%; }
  85%            { left: 140%; }
}

.sics-lang-hint {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--sics-text-2);
  letter-spacing: 0.14em;
}

.sics-lang-hint .fa {
  margin-right: 6px;
  color: var(--sics-celadon);
}

.sics-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--sics-text-2);
  font-weight: 600;
}

.sics-meta a {
  color: var(--sics-celadon-deep);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.sics-meta a:hover {
  color: var(--sics-seal);
  text-decoration: underline;
}

/* —— 响应式 —— */
@media (max-width: 960px) {
  .sics-login__split {
    flex-direction: column;
  }

  .sics-login__brand {
    flex: none;
    min-height: auto;
    padding: 40px 32px 32px;
    border-right: 0;
    border-bottom: 1px solid rgba(93, 138, 122, 0.12);
  }

  .sics-brand__deco-char {
    right: -10px;
    font-size: 180px;
    opacity: 0.5;
  }

  .sics-brand__logo-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .sics-brand__stats {
    display: none;
  }

  .sics-brand__pills {
    margin-top: 20px;
  }

  .sics-login__panel {
    flex: 1;
    max-width: none;
    min-width: 0;
    padding: 32px 24px 40px;
  }
}

@media (max-width: 480px) {
  .sics-login__brand {
    padding: 32px 20px 24px;
  }

  .sics-brand__pills {
    gap: 8px;
  }

  .sics-panel__card {
    padding: 24px 20px 18px;
  }
}

/* 减少动效（无障碍） */
@media (prefers-reduced-motion: reduce) {
  .sics-login__aurora,
  .sics-orbit,
  .sics-brand__logo-ring,
  .sics-brand__logo-glow,
  .sics-brand__logo-img,
  .sics-brand__deco-char,
  .sics-btn__shine,
  .sics-login__brand,
  .sics-login__panel,
  .sics-brand__logo-wrap,
  .sics-brand__title,
  .sics-brand__en,
  .sics-brand__tagline,
  .sics-brand__desc,
  .sics-pill,
  .sics-stat,
  .sics-login__particles span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
