/* ============================================================
   正达教育 · 统一视觉设计系统
   配色与 index.php 首页一致：青绿渐变 + 玻璃拟态 + 扁平化
   适用：后台登录(admin.php)、老师端登录(teacher.php)、
        老师入驻注册(register.php)、后台管理界面
   ============================================================ */

:root{
  /* 品牌色（与首页 --primary / --bg-start 一致） */
  --brand:        #0D9488;
  --brand-2:      #14B8A6;
  --brand-deep:   #0F766E;
  --brand-dark:   #0B5E5A;
  --gold:         #FBBF24;

  /* 文字 */
  --ink:          #1F2937;
  --ink-2:        #6B7280;
  --ink-3:        #9CA3AF;

  /* 线条 */
  --line:         #E5E7EB;
  --line-soft:    #F3F4F6;

  /* 状态 */
  --danger:       #EF4444;
  --success:      #10B981;

  /* 玻璃拟态 */
  --glass:        rgba(255,255,255,.10);
  --glass-2:      rgba(255,255,255,.16);
  --glass-line:   rgba(255,255,255,.18);
  --glass-shadow: 0 28px 90px rgba(0,0,0,.20);
}

/* ============================================================
   一、认证页（登录 / 注册）容器
   ============================================================ */
.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 20px;
  background:linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  font-family:"PingFang SC","Microsoft YaHei","Source Han Sans SC",system-ui,sans-serif;
  position:relative;
  overflow:hidden;
}

/* 背景柔光斑，增加层次（比头像瀑布流更适合表单页，不干扰阅读） */
.auth-page::before,
.auth-page::after{
  content:'';
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:.26;
  pointer-events:none;
}
.auth-page::before{ width:440px; height:440px; background:#5EEAD4; top:-140px; left:-110px; }
.auth-page::after { width:400px; height:400px; background:#38BDF8; bottom:-150px; right:-100px; }

.auth-wrap{ position:relative; z-index:1; width:100%; }

@keyframes authIn{
  from{ opacity:0; transform:translateY(18px); }
  to  { opacity:1; transform:none; }
}

/* ---------- 玻璃卡片（登录用） ---------- */
.auth-card{
  width:100%;
  max-width:420px;
  margin:0 auto;
  background:var(--glass);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border:1px solid var(--glass-line);
  border-radius:28px;
  padding:40px 34px 32px;
  box-shadow:var(--glass-shadow);
  color:#fff;
  animation:authIn .5s ease both;
}

/* ---------- 白色表单卡片（长表单/注册用，保证可读性） ---------- */
.auth-sheet{
  width:100%;
  max-width:640px;
  margin:0 auto;
  background:#fff;
  border-radius:24px;
  padding:32px 30px 28px;
  box-shadow:0 24px 70px rgba(0,0,0,.18);
  animation:authIn .5s ease both;
}

/* ============================================================
   二、品牌区（与首页 hero 一致）
   ============================================================ */
.auth-brand{ text-align:center; margin-bottom:26px; }

.auth-logo{
  width:70px; height:70px;
  margin:0 auto 14px;
  background:linear-gradient(135deg,#ffffff 0%,#f0fdfa 100%);
  border-radius:20px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 34px rgba(0,0,0,.14);
  overflow:hidden;
}
.auth-logo svg{ width:36px; height:36px; color:var(--brand); }
.auth-logo img{ width:100%; height:100%; object-fit:cover; }

.auth-title{
  font-size:26px; font-weight:800; letter-spacing:3px;
  margin:0 0 6px;
  text-shadow:0 2px 10px rgba(0,0,0,.15);
}
.auth-sub{
  font-size:13px; letter-spacing:1px; margin:0;
  color:rgba(255,255,255,.72);
}

/* 白卡上的深色品牌区 */
.auth-sheet .auth-title{ color:var(--ink); text-shadow:none; }
.auth-sheet .auth-sub { color:var(--ink-2); }

/* ============================================================
   三、表单控件
   ============================================================ */
.auth-field{ margin-bottom:16px; }

.auth-label{
  display:block;
  font-size:13px; font-weight:500;
  margin-bottom:7px;
  color:rgba(255,255,255,.88);
}
.auth-label .req{ color:#FCA5A5; margin-left:2px; }

.auth-input{
  width:100%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  color:#fff;
  outline:none;
  font-family:inherit;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.auth-input::placeholder{ color:rgba(255,255,255,.5); }
.auth-input:focus{
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.16);
  box-shadow:0 0 0 3px rgba(255,255,255,.10);
}
.auth-input:-webkit-autofill{
  -webkit-text-fill-color:#fff;
  -webkit-box-shadow:0 0 0 1000px rgba(255,255,255,.12) inset;
}

textarea.auth-input{ resize:vertical; min-height:76px; line-height:1.6; }

/* 白卡内的输入控件 */
.auth-sheet .auth-label{ color:var(--ink); }
.auth-sheet .auth-label .req{ color:var(--danger); }
.auth-sheet .auth-input{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
}
.auth-sheet .auth-input::placeholder{ color:var(--ink-3); }
.auth-sheet .auth-input:focus{
  border-color:var(--brand);
  background:#fff;
  box-shadow:0 0 0 3px rgba(13,148,136,.12);
}
.auth-sheet .auth-input:-webkit-autofill{
  -webkit-text-fill-color:var(--ink);
  -webkit-box-shadow:0 0 0 1000px #fff inset;
}

/* 学科多选 chip */
.auth-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.auth-chip{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink-2);
  padding:7px 15px;
  border-radius:10px;
  font-size:13px;
  cursor:pointer;
  user-select:none;
  transition:all .18s;
}
.auth-chip:hover{ border-color:var(--brand-2); color:var(--brand); }
.auth-chip.active{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
  box-shadow:0 4px 12px rgba(13,148,136,.28);
}
.auth-chip input{ display:none; }

.auth-hint{ font-size:12px; color:rgba(255,255,255,.6); margin-top:5px; }
.auth-sheet .auth-hint{ color:var(--ink-3); }

/* ============================================================
   四、按钮
   ============================================================ */
.auth-btn{
  width:100%;
  height:46px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#ffffff 0%,#f0fdfa 100%);
  color:var(--brand);
  font-size:15px;
  font-weight:700;
  letter-spacing:1px;
  cursor:pointer;
  transition:transform .18s, box-shadow .18s;
  box-shadow:0 8px 24px rgba(0,0,0,.14);
  font-family:inherit;
}
.auth-btn:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(0,0,0,.2); }
.auth-btn:active{ transform:scale(.985); }

/* 白卡内的主按钮：青绿实底 */
.auth-sheet .auth-btn{
  background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
  box-shadow:0 8px 24px rgba(13,148,136,.32);
}
.auth-sheet .auth-btn:hover{ box-shadow:0 14px 34px rgba(13,148,136,.42); }

/* 次级按钮（描边） */
.auth-btn--ghost{
  width:auto;
  height:38px;
  padding:0 20px;
  background:rgba(255,255,255,.12);
  color:#fff;
  border:1px solid rgba(255,255,255,.3);
  box-shadow:none;
  font-weight:600;
  letter-spacing:0;
}
.auth-btn--ghost:hover{ background:rgba(255,255,255,.2); }

/* ============================================================
   五、提示信息
   ============================================================ */
.auth-alert{
  padding:11px 14px;
  border-radius:10px;
  font-size:13px;
  margin-bottom:16px;
  line-height:1.5;
}
.auth-alert--err{
  background:rgba(254,226,226,.16);
  border:1px solid rgba(252,165,165,.4);
  color:#FECACA;
}
.auth-alert--ok{
  background:rgba(209,250,229,.16);
  border:1px solid rgba(110,231,183,.4);
  color:#A7F3D0;
}
.auth-sheet .auth-alert--err{
  background:#FEF2F2; border:1px solid #FECACA; color:#B91C1C;
}
.auth-sheet .auth-alert--ok{
  background:#ECFDF5; border:1px solid #A7F3D0; color:#047857;
}

/* ============================================================
   六、页脚链接 / 分隔
   ============================================================ */
.auth-foot{
  margin-top:20px;
  text-align:center;
  font-size:13px;
}
.auth-link{
  color:rgba(255,255,255,.75);
  text-decoration:none;
  transition:color .2s;
}
.auth-link:hover{ color:#fff; text-decoration:underline; }
.auth-sheet .auth-link{ color:var(--brand); }
.auth-sheet .auth-link:hover{ color:var(--brand-deep); }

.auth-divider{
  height:1px;
  background:rgba(255,255,255,.16);
  margin:22px 0;
}
.auth-sheet .auth-divider{ background:var(--line-soft); }

/* 折叠区（首次设置密码） */
.auth-details{ margin-top:6px; }
.auth-details > summary{
  cursor:pointer;
  font-size:13px;
  color:rgba(255,255,255,.85);
  list-style:none;
  padding:8px 0;
  outline:none;
}
.auth-details > summary::-webkit-details-marker{ display:none; }
.auth-details > summary::before{ content:'▸ '; }
.auth-details[open] > summary::before{ content:'▾ '; }
.auth-details p{ color:rgba(255,255,255,.6); font-size:12px; margin:6px 0 12px; }

/* ============================================================
   七、Layui 在深色玻璃卡片内的适配
   （保留 layui-form 结构与 lay-verify 校验，只改视觉）
   ============================================================ */
.auth-card .layui-form-item{ margin-bottom:16px; }
.auth-card .layui-form-label{
  width:100%; text-align:left; padding:0 0 7px;
  color:rgba(255,255,255,.88);
  font-size:13px; font-weight:500; float:none;
  line-height:1.4;
}
.auth-card .layui-input-block{ margin-left:0; }
.auth-card .layui-input,
.auth-card .layui-select,
.auth-card .layui-textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  border-radius:12px;
  padding:0 14px;
  height:44px; line-height:44px;
  color:#fff;
  font-size:14px;
  transition:border-color .2s, background .2s, box-shadow .2s;
}
.auth-card .layui-textarea{ height:auto; line-height:1.6; padding:12px 14px; min-height:76px; }
.auth-card .layui-input::placeholder,
.auth-card .layui-textarea::placeholder{ color:rgba(255,255,255,.5); }
.auth-card .layui-input:focus,
.auth-card .layui-textarea:focus{
  border-color:rgba(255,255,255,.55);
  background:rgba(255,255,255,.16);
  box-shadow:0 0 0 3px rgba(255,255,255,.10);
}
.auth-card .layui-btn{
  width:100%; height:46px; line-height:46px;
  border-radius:12px;
  background:linear-gradient(135deg,#ffffff 0%,#f0fdfa 100%);
  color:var(--brand);
  font-size:15px; font-weight:700;
  box-shadow:0 8px 24px rgba(0,0,0,.14);
}
.auth-card .layui-btn:hover{ transform:translateY(-2px); }
.auth-card .layui-word-aux{ color:rgba(255,255,255,.6); }
.auth-card .layui-form-mid{ padding:0 !important; margin-bottom:12px; }

/* ============================================================
   八、后台管理界面美化（已登录状态）
   保持浅色底保证可用性，主色统一为品牌青绿
   ============================================================ */
body.admin-body{
  background:#F4F7F7;
  font-family:"PingFang SC","Microsoft YaHei","Source Han Sans SC",system-ui,sans-serif;
}

/* 顶部栏 */
.admin-topbar{
  background:linear-gradient(120deg,var(--brand) 0%,var(--brand-deep) 100%) !important;
  box-shadow:0 2px 14px rgba(13,148,136,.26);
}
.admin-topbar a{ transition:opacity .2s; }
.admin-topbar a:hover{ opacity:.82; }

/* 统计卡片 */
.admin-body .stat-box{
  background:#fff;
  border-radius:16px;
  padding:22px 16px;
  box-shadow:0 2px 12px rgba(16,24,40,.06);
  border:1px solid #EDF2F2;
  transition:transform .2s, box-shadow .2s;
}
.admin-body .stat-box:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 28px rgba(16,24,40,.10);
}
.admin-body .stat-box .num{ font-size:34px; font-weight:800; letter-spacing:-.5px; }
.admin-body .stat-box.pending  .num{ color:var(--gold); }
.admin-body .stat-box.approved .num{ color:var(--brand); }
.admin-body .stat-box.rejected .num{ color:var(--danger); }
.admin-body .stat-box .label{ color:var(--ink-3); font-size:13px; margin-top:2px; }

/* 学科分类筛选 */
.admin-body .subject-filter{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #EDF2F2;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:18px;
  box-shadow:0 2px 10px rgba(16,24,40,.05);
}
.admin-body .sf-label{
  font-size:13px;
  font-weight:700;
  color:var(--ink);
  margin-right:4px;
}
.admin-body .sf-item{
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  text-decoration:none;
  color:var(--ink-2);
  background:#F4F7F7;
  border:1px solid transparent;
  transition:all .18s;
}
.admin-body .sf-item:hover{
  color:var(--brand);
  background:#E6F4F2;
  border-color:var(--brand-2);
}
.admin-body .sf-item.on{
  background:linear-gradient(120deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
  border-color:transparent;
  box-shadow:0 4px 12px rgba(13,148,136,.26);
}
.admin-body .sf-count{
  margin-left:auto;
  font-size:12px;
  color:var(--ink-3);
}

/* 用工状态筛选栏（试岗期/试用期/已转正/已离职，彩色） */
.admin-body .es-filter{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #EDF2F2;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:18px;
  box-shadow:0 2px 10px rgba(16,24,40,.05);
}
.admin-body .es-label{
  font-size:13px;
  font-weight:700;
  color:var(--ink);
  margin-right:4px;
}
.admin-body .es-item{
  padding:6px 14px;
  border-radius:20px;
  font-size:13px;
  text-decoration:none;
  background:#F4F7F7;
  border:1px solid #E0E6E6;
  transition:all .18s;
}
.admin-body .es-item:hover{ background:#E6F4F2; }
.admin-body .es-item.on{
  background:var(--brand) !important;
  color:#fff !important;
  border-color:var(--brand) !important;
  box-shadow:0 4px 12px rgba(13,148,136,.26);
}
.admin-body .es-count{
  margin-left:auto;
  font-size:12px;
  color:var(--ink-3);
}

/* 卡片（注意：不能用 overflow:hidden，会裁切 Layui select 下拉 <dl>；
   圆角由 header/body 各自的 border-radius 保证） */
.admin-body .layui-card,
.admin-body .teacher-card{
  border-radius:16px !important;
  border:1px solid #EDF2F2;
  box-shadow:0 2px 12px rgba(16,24,40,.06);
  overflow:visible;
}
.admin-body .teacher-card{ margin-bottom:18px; }
.admin-body .teacher-header{ padding:18px 22px; border-bottom:1px solid var(--line-soft); }
.admin-body .layui-card-header{
  font-weight:700;
  border-bottom:1px solid var(--line-soft);
  border-radius:16px 16px 0 0;
}
.admin-body .layui-card-body{
  border-radius:0 0 16px 16px;
}

/* Tab */
.admin-body .layui-tab-title{ border-bottom:none; }
.admin-body .layui-tab-title li a{
  border-radius:10px 10px 0 0;
  color:var(--ink-2);
  font-weight:600;
}
.admin-body .layui-tab-title .layui-this{
  background:linear-gradient(120deg,var(--brand) 0%,var(--brand-2) 100%);
  border-radius:10px 10px 0 0;
}
.admin-body .layui-tab-title .layui-this a{ color:#fff !important; }
.admin-body .layui-tab-title .layui-this:after{ border-color:var(--brand); }

/* 主按钮统一青绿 */
.admin-body .layui-btn-normal,
.admin-body .layui-btn[style*="#009688"],
.admin-body .layui-btn[style*="#0D9488"]{
  background:linear-gradient(120deg,var(--brand) 0%,var(--brand-2) 100%) !important;
  border:none !important;
  border-radius:10px;
  box-shadow:0 4px 14px rgba(13,148,136,.26);
}
.admin-body .layui-btn{
  border-radius:10px;
}

/* 表格 */
.admin-body .layui-table th{
  background:#F7FAFA;
  color:var(--ink);
  font-weight:700;
}
.admin-body .layui-table td{ color:var(--ink-2); }

/* 底部版权 */
.admin-foot{ color:var(--ink-3) !important; }

/* ============================================================
   八之二、白卡内的原生控件（注册长表单）
   兼容 register.php 原有类名，无需逐个改 input
   ============================================================ */
.auth-sheet .field{ margin-bottom:16px; }
.auth-sheet .field > label{
  display:block;
  font-size:13px; font-weight:500;
  margin-bottom:7px;
  color:var(--ink);
}
.auth-sheet .field > label .req{ color:var(--danger); margin-left:2px; }

.auth-sheet input[type=text],
.auth-sheet input[type=url],
.auth-sheet input[type=number],
.auth-sheet input[type=password],
.auth-sheet input[type=tel],
.auth-sheet input[type=file],
.auth-sheet textarea,
.auth-sheet select{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  color:var(--ink);
  outline:none;
  font-family:inherit;
  transition:border-color .2s, box-shadow .2s;
}
.auth-sheet textarea{ resize:vertical; min-height:76px; line-height:1.6; }
.auth-sheet input[type=file]{
  padding:10px 12px;
  font-size:13px;
  color:var(--ink-2);
  background:#FAFBFC;
  cursor:pointer;
}
.auth-sheet input[type=file]::file-selector-button{
  border:none;
  background:var(--brand);
  color:#fff;
  padding:7px 14px;
  border-radius:8px;
  margin-right:12px;
  cursor:pointer;
  font-size:13px;
  font-family:inherit;
}
.auth-sheet input:focus,
.auth-sheet textarea:focus,
.auth-sheet select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(13,148,136,.12);
}
.auth-sheet ::placeholder{ color:var(--ink-3); }

.auth-sheet .hint{ font-size:12px; color:var(--ink-3); margin-top:5px; }

/* 分组标题 */
.auth-sheet .sec-head{
  margin:24px 0 4px;
  border-top:1px solid var(--line-soft);
  padding-top:20px;
}

/* 选择芯片（学科 / 收款方式） */
.auth-sheet .chips{ display:flex; flex-wrap:wrap; gap:8px; }
.auth-sheet .chip{
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink-2);
  padding:7px 15px;
  border-radius:10px;
  font-size:13px;
  cursor:pointer;
  user-select:none;
  transition:all .18s;
  display:inline-flex;
  align-items:center;
}
.auth-sheet .chip:hover{ border-color:var(--brand-2); color:var(--brand); }
.auth-sheet .chip.active{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
  box-shadow:0 4px 12px rgba(13,148,136,.28);
}
.auth-sheet .chip input{ display:none; }

/* 自定义学科 chip（可删除） */
.auth-sheet .chip.is-custom{ padding-right:8px; }
.auth-sheet .chip .chip-del{
  display:inline-flex; align-items:center; justify-content:center;
  width:18px; height:18px; margin-left:6px;
  border-radius:50%;
  font-size:14px; font-style:normal; line-height:1;
  background:rgba(0,0,0,.08);
  color:inherit;
  cursor:pointer;
  transition:background .18s, color .18s;
}
.auth-sheet .chip.active .chip-del{ background:rgba(255,255,255,.28); }
.auth-sheet .chip .chip-del:hover{ background:var(--danger); color:#fff; }

/* 自定义学科输入区 */
.auth-sheet .chip-add{ display:flex; gap:8px; margin-top:10px; }
.auth-sheet .chip-add input{ flex:1; min-width:0; }
.auth-sheet .chip-add button{
  flex-shrink:0;
  padding:0 18px;
  border:1px solid var(--brand);
  background:#fff;
  color:var(--brand);
  border-radius:12px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  font-family:inherit;
  transition:all .18s;
}
.auth-sheet .chip-add button:hover{
  background:var(--brand);
  color:#fff;
  box-shadow:0 4px 12px rgba(13,148,136,.28);
}

/* 提交按钮 */
.auth-sheet .submit{
  width:100%;
  height:46px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,var(--brand) 0%,var(--brand-2) 100%);
  color:#fff;
  font-size:15px;
  font-weight:700;
  letter-spacing:1px;
  cursor:pointer;
  font-family:inherit;
  margin-top:8px;
  box-shadow:0 8px 24px rgba(13,148,136,.32);
  transition:transform .18s, box-shadow .18s;
}
.auth-sheet .submit:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(13,148,136,.42); }
.auth-sheet .submit:active{ transform:scale(.99); }

/* 兼容注册页原有的 .ok / .err */
.auth-sheet .ok{
  background:#ECFDF5; border:1px solid #A7F3D0;
  color:#047857; padding:20px; border-radius:14px;
}
.auth-sheet .ok h2{ margin:0 0 8px; font-size:17px; }
.auth-sheet .ok p{ margin:0 0 12px; font-size:14px; line-height:1.7; }
.auth-sheet .ok a{ color:var(--brand); text-decoration:none; font-weight:600; }
.auth-sheet .ok a:hover{ text-decoration:underline; }
.auth-sheet .err{
  background:#FEF2F2; border:1px solid #FECACA;
  color:#B91C1C; padding:11px 14px; border-radius:10px;
  font-size:13px; margin-bottom:16px;
}

/* ============================================================
   九、响应式
   ============================================================ */
@media (max-width:520px){
  .auth-page{ padding:32px 16px; align-items:flex-start; }
  .auth-card{ padding:32px 22px 26px; border-radius:22px; }
  .auth-sheet{ padding:24px 18px 22px; border-radius:20px; }
  .auth-title{ font-size:22px; letter-spacing:2px; }
  .auth-logo{ width:60px; height:60px; }
  .auth-logo svg{ width:30px; height:30px; }
}
