﻿:root{
  --ink:#1e2c23;--muted:#69766d;--line:#e8e1d4;--surface:#fff;
  --blue:#1b5943;--blue-dark:#143f31;--cyan:#c9a45c;--green:#7fae94;
  --danger:#dc2626;--navy:#0d241d;--navy-2:#143f31;--radius:16px;
  --shadow:0 24px 70px rgba(8,25,19,.28);
}
*{margin:0;padding:0;box-sizing:border-box}
[hidden]{display:none!important}
html{min-height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;background:#f4f1e8;color:var(--ink);min-height:100vh;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.72}
svg{display:block}

/* Authentication */
.auth-shell{position:relative;min-height:100vh;overflow:hidden;background:
  radial-gradient(circle at 12% 8%,rgba(27,89,67,.22),transparent 30%),
  radial-gradient(circle at 88% 84%,rgba(201,164,92,.16),transparent 32%),
  linear-gradient(135deg,#071a14 0%,#0d241d 52%,#17251e 100%);
  color:#fff;display:flex;align-items:center;justify-content:center;padding:42px 28px 68px}
.auth-grid{position:absolute;inset:0;opacity:.22;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:54px 54px;mask-image:linear-gradient(to bottom,black,transparent 88%)}
.auth-orb{position:absolute;border-radius:50%;filter:blur(3px);pointer-events:none}
.orb-one{width:440px;height:440px;left:-210px;top:-180px;border:1px solid rgba(201,164,92,.22);box-shadow:inset 0 0 100px rgba(27,89,67,.08)}
.orb-two{width:360px;height:360px;right:-140px;bottom:-180px;border:1px solid rgba(201,164,92,.2);box-shadow:inset 0 0 90px rgba(201,164,92,.06)}
.auth-layout{position:relative;z-index:1;width:min(1120px,100%);display:grid;grid-template-columns:minmax(0,1fr) 430px;gap:82px;align-items:center}
.auth-intro{max-width:590px;padding:26px 0}
.brand-lockup{display:flex;align-items:center;gap:13px;margin-bottom:76px}
.brand-icon{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:14px;background:linear-gradient(145deg,#1b5943,#c9a45c);color:#fff;box-shadow:0 12px 30px rgba(27,89,67,.35)}
.brand-icon svg{width:28px;height:28px}.brand-icon.small{width:38px;height:38px;border-radius:11px;background:linear-gradient(145deg,#1b5943,#c9a45c);box-shadow:0 7px 18px rgba(15,48,36,.25)}.brand-icon.small svg{width:22px;height:22px}
.brand-copy{display:flex;flex-direction:column;gap:2px}.brand-copy strong{font-size:21px;letter-spacing:.02em}.brand-copy small{font-size:9px;letter-spacing:.22em;color:#b9a46f;font-weight:700}
.eyebrow{display:flex;align-items:center;gap:10px;color:#e7c883;font-size:11px;letter-spacing:.22em;font-weight:800;margin-bottom:18px}.eyebrow span{width:28px;height:2px;background:#c9a45c;border-radius:2px}
.intro-copy h1{font-size:clamp(38px,4.4vw,58px);line-height:1.17;letter-spacing:-.035em;font-weight:750}
.intro-copy h1 em{font-style:normal;background:linear-gradient(90deg,#e7c883,#8fb59e);-webkit-background-clip:text;background-clip:text;color:transparent}
.intro-text{margin-top:22px;max-width:520px;color:#a9b4aa;line-height:1.9;font-size:15px}
.feature-list{margin-top:42px;display:grid;gap:13px;max-width:520px}
.feature-item{display:flex;align-items:center;gap:15px;padding:13px 15px;border:1px solid rgba(201,164,92,.13);background:rgba(255,255,255,.035);border-radius:14px;backdrop-filter:blur(12px)}
.feature-icon{width:34px;height:34px;border-radius:10px;background:rgba(201,164,92,.15);border:1px solid rgba(201,164,92,.2);color:#e7c883;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;letter-spacing:.06em}
.feature-item>span:last-child{display:flex;flex-direction:column;gap:3px}.feature-item b{font-size:13px}.feature-item small{color:#8c9a90;font-size:11px}
.intro-foot{display:flex;align-items:center;gap:10px;color:#89978d;font-size:11px;margin-top:34px}.intro-foot i{width:1px;height:12px;background:rgba(255,255,255,.16)}.status-dot{width:7px;height:7px;border-radius:50%;background:#8fb59e;box-shadow:0 0 0 4px rgba(201,164,92,.1)}
.auth-card{position:relative;background:rgba(255,255,255,.985);color:var(--ink);border:1px solid rgba(255,255,255,.65);border-radius:24px;padding:36px;box-shadow:var(--shadow);backdrop-filter:blur(22px)}
.auth-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;border-radius:24px 24px 0 0;background:linear-gradient(90deg,#1b5943,#c9a45c,#7fae94)}
.auth-card-head{margin-bottom:26px}.card-kicker{font-size:10px;color:#1b5943;font-weight:850;letter-spacing:.2em;margin-bottom:10px}.auth-card-head h2{font-size:26px;letter-spacing:-.02em;margin-bottom:7px}.auth-card-head>p:last-child{color:var(--muted);font-size:13px}
.auth-form{gap:16px}.field{display:flex;flex-direction:column;gap:7px}.field-label{font-size:12px;font-weight:700;color:#49574d}
.input-wrap{position:relative;display:flex;align-items:center;height:48px;border:1px solid var(--line);border-radius:12px;background:#fbfaf5;transition:border-color .18s,box-shadow .18s,background .18s}
.input-wrap:focus-within{border-color:#8faf9a;background:#fff;box-shadow:0 0 0 4px rgba(27,89,67,.1)}
.input-wrap>svg{width:18px;height:18px;fill:none;stroke:#8e9b91;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-left:14px;flex:0 0 auto}
.input-wrap input{width:100%;height:100%;border:0!important;outline:0;background:transparent;padding:0 14px 0 11px;font-size:14px;color:var(--ink);box-shadow:none!important}
.input-wrap input::placeholder{color:#a4ada5}
.input-wrap.no-icon input{padding-left:14px}
.field-action{border:0;background:transparent;color:#66756b;font-size:12px;font-weight:700;padding:8px 13px 8px 8px}
.field-action:hover{color:var(--blue)}
.captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:10px}
.captcha-input input{letter-spacing:.18em;text-transform:uppercase;font-weight:750}
.captcha-image{position:relative;height:48px;border:1px solid #ded8ca;border-radius:12px;overflow:hidden;background:#f6f0df;padding:0}
.captcha-image img{width:100%;height:100%;object-fit:cover;display:block}
.captcha-loading,.captcha-refresh{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;font-size:10px;color:#66756b;background:rgba(255,255,255,.78);border-radius:20px;padding:3px 7px}
.captcha-refresh{opacity:0;color:#143f31;background:rgba(255,255,255,.94);transition:opacity .18s}.captcha-image:hover .captcha-refresh{opacity:1}.captcha-image img:not([src])+.captcha-loading{display:block}.captcha-image img[src]+.captcha-loading{display:none}
.form-message{font-size:12px;line-height:1.45;color:var(--danger);min-height:18px}
.form-message.success{color:#4f8b6c}.form-message:empty{min-height:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:13px;font-weight:700;transition:transform .16s,box-shadow .16s,background .16s,border-color .16s}
.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,#1b5943,#143f31);border-color:transparent;color:#fff;box-shadow:0 10px 24px rgba(27,89,67,.24)}.btn.primary:hover{box-shadow:0 13px 28px rgba(27,89,67,.32)}.btn.secondary{width:100%;background:#faf9f4;border-color:#e9e2d3;color:#3a473d}.btn.secondary:hover{background:#f2efe4;border-color:#c9b373;color:#143f31}.btn.small{padding:7px 12px;font-size:12px;border-radius:9px}.btn.danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn.ghost{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.22);color:#fff}
.auth-submit{height:49px;margin-top:2px;position:relative}.auth-submit .spinner{display:none;width:15px;height:15px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}.auth-submit.loading .spinner{display:block}.auth-submit.loading .btn-label{opacity:.82}
@keyframes spin{to{transform:rotate(360deg)}}
.auth-divider{display:flex;align-items:center;gap:12px;color:#9ca79d;font-size:11px;margin:24px 0 14px}.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:#ebe5da}
.auth-footnote{display:flex;align-items:center;justify-content:center;gap:6px;color:#8e9b91;font-size:10.5px;margin-top:18px}.auth-footnote svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8}
.page-footer{position:absolute;left:0;right:0;bottom:22px;text-align:center;color:#718075;font-size:10px;letter-spacing:.04em;z-index:1;white-space:nowrap}

/* Dashboard */
.topbar{background:linear-gradient(120deg,#0d241d,#1b5943 62%,#143f31);color:#fff;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 4px 18px rgba(12,38,30,.2);position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:10px}.brand h1{font-size:17px}.brand .sub{font-size:10.5px;opacity:.7}
.dashboard{max-width:900px;margin:0 auto;padding:22px 18px 70px}
.welcome-strip{background:linear-gradient(130deg,#143f31,#1b5943);border-radius:18px;color:#fff;padding:24px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 14px 35px rgba(17,45,35,.2)}
.welcome-strip h2{font-size:22px;margin-bottom:6px}.welcome-strip p:last-child{color:#b9c9bd;font-size:12px}.welcome-mark{font-size:10px;font-weight:800;letter-spacing:.18em;color:#e7c883;border:1px solid rgba(201,164,92,.25);padding:8px 10px;border-radius:9px}
.panel{background:#fff;border:1px solid #eae4d8;border-radius:16px;box-shadow:0 8px 24px rgba(23,53,41,.06);padding:20px;margin-bottom:16px}
.panel-title{display:flex;align-items:center;gap:11px}.panel-title h2{font-size:15px}.panel-title p{font-size:11px;color:var(--muted);margin-top:2px}.panel-number{width:30px;height:30px;border-radius:9px;background:#f5f0e2;color:#1b5943;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:850}.head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.count-pill{font-size:11px;font-weight:700;color:#143f31;background:#f5f0e2;border-radius:20px;padding:5px 10px}.count-pill.neutral{background:#f0ece2;color:#66746b;letter-spacing:.08em}
.form{display:flex;flex-direction:column;gap:13px}.row{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}.row .field{flex:1;min-width:180px}.suffix{font-size:13px;padding-top:35px;color:#5c6b60;font-weight:650}.field-help{font-size:10px;color:#96a197}
.input-wrap.no-icon{height:46px}.input-wrap.no-icon input{padding-left:14px}
.binding{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #eae4d8;border-radius:12px;margin-bottom:9px;flex-wrap:wrap;background:#fdfcf8}
.binding .url{flex:1;min-width:190px}.binding .url b{font-size:14px;color:#244a3b}.binding .meta{font-size:11px;color:var(--muted);margin-top:4px}.binding .acts{display:flex;gap:7px}
.msg,.form-message{font-size:12px;color:var(--muted);line-height:1.5}
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,10px);background:#12271f;color:#fff;padding:11px 20px;border-radius:30px;font-size:13px;z-index:200;opacity:0;transition:opacity .22s,transform .22s;pointer-events:none;box-shadow:0 10px 30px rgba(0,0,0,.24)}.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:980px){
  .auth-layout{grid-template-columns:minmax(0,1fr) 400px;gap:42px}.brand-lockup{margin-bottom:52px}.feature-list{display:none}.intro-copy h1{font-size:40px}.intro-foot{margin-top:36px}
}
@media (max-width:760px){
  .auth-shell{padding:28px 16px 72px;align-items:flex-start}.auth-layout{display:block;max-width:440px;margin:0 auto}.auth-intro{padding:0;margin-bottom:26px}.brand-lockup{margin-bottom:34px}.brand-icon{width:42px;height:42px}.brand-copy strong{font-size:18px}.intro-copy h1{font-size:32px}.intro-text{font-size:13px;margin-top:14px;line-height:1.75}.intro-foot{display:none}.auth-card{padding:28px 22px;border-radius:20px}.auth-card-head h2{font-size:23px}.page-footer{bottom:16px}
  .captcha-row{grid-template-columns:minmax(0,1fr) 116px}.captcha-image{height:48px}.welcome-mark{display:none}.welcome-strip{padding:20px}.welcome-strip h2{font-size:19px}.dashboard{padding:16px 12px 50px}.topbar{padding:11px 14px}.binding .acts{width:100%}.binding .acts .btn{flex:1}
}
@media (max-width:390px){
  .auth-shell{padding-left:12px;padding-right:12px}.auth-card{padding:24px 17px}.captcha-row{grid-template-columns:minmax(0,1fr) 102px}.input-wrap>svg{display:none}.input-wrap input{padding-left:14px}
}