/* ============================================================
   泉州华光职业学院 · 统一身份认证登录页模板
   风格：「门庭华光 · 晨光靛蓝」
   沉浸式校园实景背景 + 玻璃拟态卡片 + 鎏金点缀
   ============================================================ */

:root {
  --ink:        #F2EEE6;   /* 暖白主文字 */
  --ink-soft:   #C3CEDA;   /* 次级文字 */
  --ink-faint:  #8FA3B7;   /* 弱文字 */
  --indigo:     #1E5A8C;   /* 主靛蓝 */
  --indigo-deep:#123A5C;   /* 深靛蓝 */
  --indigo-ink: #0A1C31;   /* 夜色蓝 */
  --gold:       #C9A96A;   /* 鎏金 */
  --gold-soft:  #DDBB7F;
  --glass:      rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .14);
  --danger:     #E0705F;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans:  "PingFang SC", "Microsoft YaHei", "微软雅黑", "Segoe UI", sans-serif;

  --radius: 22px;
  --shadow-card: 0 40px 90px -20px rgba(5, 18, 32, .65);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--indigo-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- 背景层 ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.bg-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: bgSettle 1.6s cubic-bezier(.2, .7, .2, 1) forwards;
}

@keyframes bgSettle {
  from { transform: scale(1.1); filter: saturate(.7) brightness(.75); }
  to   { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
}

/* 蒙层：保证登录区可读性，中央偏亮 */
.bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(6, 17, 30, .88) 0%, rgba(8, 26, 44, .66) 42%, rgba(12, 40, 64, .52) 100%),
    radial-gradient(1200px 700px at 68% 38%, rgba(255, 255, 255, .10), transparent 62%);
}

/* 氛围光晕 */
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow--a { width: 460px; height: 460px; left: -120px; top: 8%; background: rgba(30, 90, 140, .55); }
.bg-glow--b { width: 520px; height: 520px; right: -160px; bottom: -10%; background: rgba(201, 169, 106, .22); }

/* 噪点纹理 */
.bg-grain {
  position: absolute; inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- 顶部条 ---------- */
.topbar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 56px);
}

.topbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  animation: rise .8s .05s both;
}

.seal {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background: #fff;
}
.seal--lg { width: 58px; height: 58px; border-radius: 12px; }

.topbar-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
  text-shadow: 0 2px 14px rgba(5, 18, 32, .5);
}

.topbar-nav {
  display: flex; gap: 6px;
  animation: rise .8s .12s both;
}

.topbar-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color .25s, border-color .25s, background .25s;
}

.topbar-nav a:hover {
  color: var(--ink);
  border-color: var(--glass-line);
  background: var(--glass);
}

/* ---------- 主舞台 ---------- */
.stage {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px) clamp(20px, 4vw, 56px);
  min-height: calc(100vh - 130px);
}

.card {
  display: flex;
  width: min(960px, 100%);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(10, 22, 38, .42);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  animation: cardIn .9s cubic-bezier(.2, .8, .25, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 左：品牌区 ---------- */
.brand {
  flex: 0 0 340px;
  position: relative;
  display: flex; flex-direction: column;
  padding: 44px 36px 30px;
  background:
    linear-gradient(165deg, rgba(18, 58, 92, .92) 0%, rgba(9, 26, 45, .90) 68%, rgba(10, 28, 48, .94) 100%);
  border-right: 1px solid rgba(255, 255, 255, .10);
}

.brand::after {  /* 底部鎏金细线 */
  content: ""; position: absolute; left: 36px; right: 36px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .6;
}

.brand-inner { display: flex; flex-direction: column; }

.brand-badge {
  width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  margin-bottom: 26px;
  box-shadow: 0 10px 26px -8px rgba(5, 18, 32, .6);
  animation: rise .8s .2s both;
}

.brand-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--ink);
  animation: rise .8s .26s both;
}

.brand-sub {
  margin: 0 0 28px;
  font-size: 11.5px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  animation: rise .8s .32s both;
}

.brand-points {
  margin: 0 0 32px; padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 2.05;
  color: var(--ink-soft);
  animation: rise .8s .38s both;
}

.brand-points li {
  padding-left: 22px; position: relative;
}

.brand-points li::before {
  content: ""; position: absolute; left: 4px; top: .9em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(201, 169, 106, .8);
}

.brand-help {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  animation: rise .8s .44s both;
}

.brand-help__icon {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--indigo-ink);
  font-weight: 700;
  font-size: 15px;
}

.brand-help b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.brand-help p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-faint); }

.brand-foot {
  margin: 26px 0 0;
  font-size: 11.5px;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
}

/* ---------- 右：登录面板 ---------- */
.panel {
  flex: 1 1 auto;
  min-width: 0;
  padding: 42px 44px 30px;
}

.panel-head { margin-bottom: 24px; animation: rise .8s .3s both; }

.panel-head h2 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: 23px;
  letter-spacing: 1px;
  color: var(--ink);
}

.panel-head p { margin: 0; font-size: 13px; color: var(--ink-faint); letter-spacing: .5px; }

/* 扫码按钮 */
.scan-row {
  display: flex; gap: 12px;
  margin-bottom: 6px;
  animation: rise .8s .36s both;
}

.scan-btn {
  flex: 1;
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 10px;
  border-radius: 13px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  transition: transform .22s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.scan-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 10px 24px -10px rgba(5, 18, 32, .7);
}

.scan-ico {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  flex: 0 0 auto;
}

.scan-btn--qq .scan-ico { color: #12B7F5; }
.scan-btn--wechat .scan-ico { color: #07C160; }

/* 分隔线 */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  animation: rise .8s .42s both;
}

.divider::before, .divider::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--glass-line));
}
.divider::after { background: linear-gradient(90deg, var(--glass-line), transparent); }

/* 表单 */
.login-form { animation: rise .8s .48s both; }

.field { margin-bottom: 15px; }

.field label, .recovery-form label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 7px;
  letter-spacing: .5px;
}

.input-wrap {
  position: relative;
  display: flex; align-items: center;
}

.input-ico {
  position: absolute; left: 14px;
  color: var(--ink-faint);
  pointer-events: none;
  transition: color .25s;
}

.input-wrap input, .recovery-form > input:not([type="hidden"]) {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: .5px;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.input-wrap input::placeholder, .recovery-form > input::placeholder { color: rgba(255, 255, 255, .32); }

.input-wrap input:focus, .recovery-form > input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, .10);
  box-shadow: 0 0 0 3px rgba(201, 169, 106, .16);
}

.input-wrap input:focus ~ .input-ico,
.input-wrap:focus-within .input-ico { color: var(--gold); }

/* 密码可见切换 */
.eye {
  position: absolute; right: 8px;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 0; border-radius: 9px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .25s, background .25s;
}

.eye:hover { color: var(--gold); background: rgba(255, 255, 255, .08); }

/* 验证码 */
.captcha-row { gap: 10px; }

.captcha-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.captcha-img {
  flex: 0 0 auto;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-line);
  cursor: pointer;
  transition: transform .2s ease, border-color .25s;
}

.captcha-img:hover { transform: scale(1.04); border-color: var(--gold); }

.captcha-tip {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* 登录按钮 */
.submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 55%, #B8955A);
  color: var(--indigo-ink);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 6px;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(201, 169, 106, .55);
  transition: transform .22s ease, box-shadow .25s ease, filter .25s ease;
}

.submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px -10px rgba(201, 169, 106, .7);
}

.submit:active { transform: translateY(0); }

.submit-arrow { transition: transform .25s ease; }
.submit:hover .submit-arrow { transform: translateX(3px); }

/* 底部链接 */
.foot-links {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-faint);
  animation: rise .8s .54s both;
}

.foot-links a { color: var(--gold); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--gold-soft); text-decoration: underline; }
.foot-links b { color: var(--ink-soft); font-weight: 600; }

.foot {
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  word-break: break-all;
  animation: rise .8s .6s both;
}

/* 表单错误提示（登录演示用） */
.form-error {
  margin: -4px 0 12px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(224, 112, 95, .5);
  background: rgba(224, 112, 95, .14);
  color: #F3B8AE;
  font-size: 12.5px;
  line-height: 1.6;
  display: none;
}

.form-error.show { display: block; animation: shake .4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative; z-index: 10;
  padding: 12px 20px 20px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(242, 238, 230, .72);
  text-shadow: 0 1px 8px rgba(5, 18, 32, .6);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .card { flex-direction: column; max-width: 520px; }
  .brand { flex: none; padding: 30px 28px 24px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .10); }
  .brand-badge { width: 58px; height: 58px; margin-bottom: 18px; }
  .seal--lg { width: 44px; height: 44px; }
  .brand-title { font-size: 22px; }
  .brand-sub { margin-bottom: 18px; }
  .brand-points { margin-bottom: 20px; font-size: 13px; }
  .brand-foot { margin-top: 18px; }
  .panel { padding: 28px 26px 24px; }
  .topbar-nav a { padding: 7px 10px; font-size: 12px; }
}

@media (max-width: 560px) {
  .topbar { padding: 14px 16px; }
  .topbar-nav { display: none; }
  .stage { padding: 10px 14px 8px; min-height: calc(100dvh - 84px); align-items: flex-start; }
  .card { border-radius: 18px; }

  /* 品牌区压缩为横向条，突出表单 */
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
  }
  .brand-badge { width: 46px; height: 46px; margin-bottom: 0; border-radius: 12px; flex: 0 0 auto; }
  .seal--lg { width: 34px; height: 34px; }
  .brand-title { font-size: 18px; letter-spacing: 1px; margin: 0; }
  .brand-sub { margin: 2px 0 0; font-size: 10px; letter-spacing: 2px; }
  .brand-points, .brand-help, .brand-foot, .brand::after { display: none; }
  .brand-inner { display: flex; flex-direction: column; }

  .panel { padding: 22px 20px 20px; }
  .panel-head { margin-bottom: 18px; }
  .panel-head h2 { font-size: 20px; }
  .scan-row { flex-direction: row; }
  .scan-btn { font-size: 13px; padding: 12px 6px; }
  .footer { padding-bottom: 14px; }
}

/* Production integration: native forms, server notices and configured providers. */
.brand-badge img { width: 58px; height: 58px; border-radius: 12px; display: block; }
.scan-row { flex-wrap: wrap; }
.scan-ico img { display: block; }
.login-hint { width: 100%; color: var(--ink-soft); font-size: 12px; text-align: center; }
.notice, .notice-ok { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 10px; background: rgba(201,169,106,.12); color: var(--ink); font-size: 13px; line-height: 1.75; }
.notice ol { margin: 6px 0; padding-left: 20px; }
.notice-ok { border-color: #7bc5a0; }
.captcha-img { display: block; height: 42px; overflow: hidden; background: white; }
.captcha-img img { display: block; }
.captcha-row input { padding-left: 14px; }
a, button { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; }
html { scrollbar-color: var(--ink-faint) var(--indigo-ink); scrollbar-gutter: stable; }
@media (max-width: 900px) { .brand-badge img { width: 44px; height: 44px; } }
@media (max-width: 560px) { .brand-badge img { width: 34px; height: 34px; } .scan-btn { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Password recovery shares the authentication palette and controls. */
.recovery-form > input:not([type="hidden"]) { padding-left: 14px; margin-bottom: 18px; }
.recovery-form .submit { letter-spacing: 2px; }
.recovery-form .captcha-row { margin-bottom: 6px; }
.recovery-form .captcha-tip { margin-bottom: 18px; }
.recovery-panel .steps { margin: 0 0 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.recovery-panel form + .steps { margin-top: 18px; }
.recovery-panel .steps b { color: var(--ink); }

/* Application consent uses the shared authentication visual system. */
.consent-panel .app { margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); color: var(--gold-soft); font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.consent-panel .who, .consent-note { color: var(--ink-soft); font-size: 13px; line-height: 1.8; margin: 0 0 18px; overflow-wrap: anywhere; }
.consent-panel .who b { color: var(--ink); }
.scope-list { list-style: none; padding: 0; margin: 0 0 24px; }
.scope-list li { padding: 12px 14px; border: 1px solid var(--glass-line); border-radius: 12px; background: var(--glass); margin-bottom: 10px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.scope-code { color: var(--ink-faint); font-size: 12px; }
.consent-actions { display: flex; gap: 12px; }
.consent-actions button { flex: 1; min-width: 0; padding: 14px 10px; border-radius: 12px; font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 1px; cursor: pointer; }
.consent-actions .consent-approve { margin: 0; width: auto; }
.consent-deny { color: var(--ink-soft); background: var(--glass); border: 1px solid var(--glass-line); transition: background .2s, border-color .2s; }
.consent-deny:hover { background: rgba(255,255,255,.12); border-color: var(--gold); }
.consent-deny:active { background: rgba(255,255,255,.18); }
.consent-return { justify-content: center; margin-top: 20px; text-align: center; }
.brand-help--feedback a { color: var(--gold-soft); text-underline-offset: 3px; }
@media (max-width: 560px) { .brand-help--feedback { display: flex; margin-top: 12px; } }
@media (max-width: 420px) { .consent-actions { flex-direction: column-reverse; } }
