:root{
  --bg:#f4faf7;
  --bg-2:#ebf7f1;
  --surface:rgba(255,255,255,.86);
  --surface-solid:#ffffff;
  --ink:#12372d;
  --muted:#6c837a;
  --emerald:#0f9b70;
  --emerald-deep:#087554;
  --emerald-soft:#dff4eb;
  --line:#d5e9e0;
  --shadow:0 28px 80px rgba(16,79,60,.14),0 8px 28px rgba(20,87,67,.08);
}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{
  min-height:100vh;
  overflow:hidden;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 17% 12%,rgba(42,183,137,.17),transparent 28%),
    radial-gradient(circle at 88% 84%,rgba(12,134,94,.14),transparent 32%),
    linear-gradient(145deg,#f9fdfb 0%,#f2faf6 45%,#edf8f3 100%);
}
button,input{font:inherit}
a{color:inherit}
.page-grid{
  position:fixed;inset:0;pointer-events:none;opacity:.55;
  background-image:linear-gradient(rgba(20,110,82,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(20,110,82,.035) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:linear-gradient(to bottom,black,transparent 82%);
  mask-image:linear-gradient(to bottom,black,transparent 82%);
}
.page-glow{position:fixed;border-radius:50%;filter:blur(32px);pointer-events:none}
.glow-one{width:350px;height:350px;background:rgba(43,190,142,.15);top:-130px;left:-110px}
.glow-two{width:460px;height:460px;background:rgba(16,153,111,.09);right:-180px;bottom:-210px}
.login-page{
  position:relative;z-index:2;min-height:100vh;display:grid;grid-template-columns:minmax(330px,.86fr) minmax(520px,1.14fr);
  width:min(1380px,100%);margin:0 auto;padding:clamp(28px,4.2vw,68px);
}
.login-brand-panel{display:flex;flex-direction:column;justify-content:space-between;padding:18px clamp(18px,4vw,52px) 18px 0}
.brand-lockup{display:flex;align-items:center;gap:13px;color:#54756a;font-size:10px;font-weight:800;letter-spacing:.22em}
.brand-logo{width:126px;height:auto;object-fit:contain;filter:drop-shadow(0 9px 24px rgba(6,106,75,.08))}
.brand-rule{width:1px;height:28px;background:#bed9ce}
.brand-copy{max-width:510px;margin-top:30px}
.eyebrow{margin:0 0 18px;color:var(--emerald);font-size:11px;font-weight:900;letter-spacing:.2em}
.brand-copy h1{margin:0;font-size:clamp(43px,5vw,76px);line-height:.98;letter-spacing:-.055em;font-weight:770;color:#173d32}
.brand-copy h1 em{font-style:normal;color:var(--emerald)}
.brand-description{max-width:430px;margin:26px 0 0;font-size:15px;line-height:1.8;color:#688078}
.brand-footnote{display:flex;align-items:center;gap:10px;color:#769087;font-size:11px;font-weight:700}
.live-dot{width:8px;height:8px;border-radius:50%;background:#19a979;box-shadow:0 0 0 5px rgba(25,169,121,.09),0 0 18px rgba(25,169,121,.35)}
.login-stage{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0}
.login-frame{
  position:relative;width:min(100%,470px);padding:2px;border-radius:29px;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(190,225,210,.52));
  box-shadow:var(--shadow);
  isolation:isolate;
}
.login-frame::before{
  content:"";position:absolute;inset:-12px;border-radius:38px;z-index:-3;
  background:radial-gradient(circle at 30% 5%,rgba(65,214,164,.18),transparent 32%),radial-gradient(circle at 70% 97%,rgba(16,146,105,.14),transparent 31%);
  filter:blur(20px);opacity:.9;
}
.login-frame::after{
  content:"";position:absolute;inset:0;border-radius:29px;pointer-events:none;z-index:8;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.82),inset 0 0 28px rgba(255,255,255,.25);
}
.login-card{
  position:relative;z-index:2;border-radius:27px;padding:42px 42px 34px;
  background:linear-gradient(160deg,rgba(255,255,255,.97),rgba(248,253,250,.89));
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
  border:1px solid rgba(255,255,255,.84);overflow:hidden;
}
.login-card::before{
  content:"";position:absolute;inset:-120px auto auto -130px;width:280px;height:280px;border-radius:50%;
  background:radial-gradient(circle,rgba(42,190,141,.12),transparent 68%);pointer-events:none;
}
.login-head{text-align:center;position:relative}
.mini-mark{display:inline-flex;align-items:center;justify-content:center;min-width:70px;height:32px;padding:0 13px;border-radius:10px;background:#e6f6ef;color:#087653;font-size:14px;font-weight:950;letter-spacing:.14em}
.login-head>p{margin:9px 0 24px;font-size:8px;letter-spacing:.28em;color:#8aa097;font-weight:900}
.login-head h2{font-size:30px;line-height:1.1;margin:0;color:#173c31;letter-spacing:-.03em}
.login-head>span{display:block;margin-top:9px;color:#778e85;font-size:12px}
.login-form{margin-top:32px}
.field{display:block;margin-top:17px}
.field-label{display:block;margin:0 0 8px 2px;color:#577168;font-size:10px;font-weight:800}
.input-shell{position:relative;display:flex;align-items:center;height:54px;border:1px solid #d5e7df;border-radius:14px;background:rgba(250,253,251,.92);transition:.2s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
.input-shell:focus-within{border-color:#65c5a4;box-shadow:0 0 0 4px rgba(16,154,112,.08),0 7px 22px rgba(16,118,85,.07);background:#fff}
.input-shell>svg{width:18px;height:18px;margin-left:16px;fill:none;stroke:#6f8b81;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.input-shell input{height:100%;width:100%;border:0;outline:0;background:transparent;padding:0 15px;color:#163a30;font-size:12px}
.input-shell input::placeholder{color:#a2b1ac}
.eye-button{width:44px;height:44px;display:grid;place-items:center;border:0;background:transparent;cursor:pointer;margin-right:5px;border-radius:10px;color:#718d83;transition:.18s}
.eye-button:hover{background:#eef8f4;color:#0b8d64}
.eye-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.form-options{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:17px 2px 22px;font-size:10px}
.remember{display:flex;align-items:center;gap:8px;cursor:pointer;color:#687e76}
.remember input{position:absolute;opacity:0;pointer-events:none}
.checkmark{width:17px;height:17px;border-radius:5px;border:1px solid #c3ddd3;background:#fff;display:grid;place-items:center;transition:.18s}
.remember input:checked+.checkmark{background:#11996f;border-color:#11996f;box-shadow:0 4px 11px rgba(17,153,111,.2)}
.remember input:checked+.checkmark::after{content:"✓";font-size:11px;line-height:1;color:white;font-weight:900}
.forgot-link{text-decoration:none;color:#0b8b63;font-weight:850}
.forgot-link:hover{text-decoration:underline}
.sign-in{position:relative;isolation:isolate;width:100%;height:56px;border:0;border-radius:15px;background:linear-gradient(135deg,#0d9369,#21b382);color:white;display:flex;align-items:center;justify-content:center;gap:11px;font-weight:850;font-size:12px;cursor:pointer;box-shadow:0 14px 28px rgba(11,143,101,.2);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.sign-in::before{content:"";position:absolute;top:-160%;left:-30%;width:38%;height:420%;transform:rotate(26deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.44),transparent);animation:buttonSweep 4.1s ease-in-out infinite;z-index:-1}
.sign-in:hover{transform:translateY(-1px);box-shadow:0 17px 34px rgba(11,143,101,.26)}
.sign-in svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.login-note{display:flex;gap:10px;align-items:center;margin-top:22px;padding:13px 14px;border:1px solid #e0ede7;border-radius:13px;background:#f8fcfa}
.shield{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#e4f5ed;color:#0d9369;font-size:12px;font-weight:900}
.login-note p{margin:0;display:flex;flex-direction:column;gap:2px}.login-note strong{font-size:9px;color:#49685e}.login-note small{font-size:8px;color:#8aa097}
.stage-caption{margin:17px 0 0;color:#81968e;font-size:9px;font-weight:700;letter-spacing:.09em}

/* Animated border traces inspired by the user's reference, rebuilt in IGM white + emerald. */
.trace{position:absolute;z-index:12;pointer-events:none;border-radius:999px;filter:drop-shadow(0 0 4px rgba(24,185,132,.72)) drop-shadow(0 0 10px rgba(24,185,132,.28))}
.trace::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.98) 37%,#31d5a0 57%,transparent 100%)}
.trace-top{height:2px;width:43%;top:0;left:7%;animation:topTrace 4.8s ease-in-out infinite}
.trace-right{width:2px;height:38%;right:0;top:9%;animation:rightTrace 4.8s ease-in-out infinite .78s}
.trace-right::after,.trace-left::after{background:linear-gradient(180deg,transparent 0%,rgba(255,255,255,.98) 38%,#31d5a0 60%,transparent 100%)}
.trace-bottom{height:2px;width:43%;bottom:0;right:7%;animation:bottomTrace 4.8s ease-in-out infinite 1.56s}
.trace-left{width:2px;height:38%;left:0;bottom:9%;animation:leftTrace 4.8s ease-in-out infinite 2.34s}
@keyframes topTrace{0%,14%{opacity:0;transform:translateX(-24%)}24%,46%{opacity:1}60%,100%{opacity:0;transform:translateX(128%)}}
@keyframes rightTrace{0%,14%{opacity:0;transform:translateY(-23%)}24%,46%{opacity:1}60%,100%{opacity:0;transform:translateY(160%)}}
@keyframes bottomTrace{0%,14%{opacity:0;transform:translateX(24%)}24%,46%{opacity:1}60%,100%{opacity:0;transform:translateX(-128%)}}
@keyframes leftTrace{0%,14%{opacity:0;transform:translateY(23%)}24%,46%{opacity:1}60%,100%{opacity:0;transform:translateY(-160%)}}
.corner{position:absolute;width:27px;height:27px;z-index:11;opacity:.66;pointer-events:none}
.corner-tl{left:-1px;top:-1px;border-left:2px solid rgba(255,255,255,.92);border-top:2px solid #28b988;border-radius:28px 0 0 0}
.corner-tr{right:-1px;top:-1px;border-right:2px solid #25a97e;border-top:2px solid rgba(255,255,255,.95);border-radius:0 28px 0 0}
.corner-br{right:-1px;bottom:-1px;border-right:2px solid rgba(255,255,255,.92);border-bottom:2px solid #28b988;border-radius:0 0 28px 0}
.corner-bl{left:-1px;bottom:-1px;border-left:2px solid #25a97e;border-bottom:2px solid rgba(255,255,255,.95);border-radius:0 0 0 28px}
@keyframes buttonSweep{0%,55%{transform:translateX(-190%) rotate(26deg)}78%,100%{transform:translateX(410%) rotate(26deg)}}

@media(max-width:980px){
  body{overflow:auto}
  .login-page{grid-template-columns:1fr;min-height:100vh;padding:30px 24px 38px}
  .login-brand-panel{padding:0;min-height:auto;gap:40px}
  .brand-copy{display:none}
  .brand-footnote{display:none}
  .brand-lockup{justify-content:center;margin-bottom:22px}
  .login-stage{justify-content:flex-start}
}
@media(max-width:560px){
  .login-page{padding:22px 16px 32px}
  .brand-logo{width:108px}
  .brand-rule,.brand-lockup>span{display:none}
  .login-card{padding:34px 22px 25px}
  .login-frame{border-radius:24px}.login-card{border-radius:22px}.login-frame::after{border-radius:24px}
  .login-head h2{font-size:27px}
  .form-options{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .trace,.sign-in::before{animation:none!important}.trace{display:none}
}
.alert{margin:18px 0 -14px;padding:10px 12px;border-radius:10px;background:#fdecef;color:#a83c51;border:1px solid #f4cdd4;font-size:10px;line-height:1.4}.alert.success{background:#e8f6f0;color:#0b7757;border-color:#caeadd}.auth-link{display:inline-flex;margin-top:16px;color:#0b8b63;text-decoration:none;font-size:10px;font-weight:850}.auth-link:hover{text-decoration:underline}.auth-copy{color:#7b9188;font-size:11px;line-height:1.65;text-align:center;margin:12px 0 0}
.business-stage{width:min(100%,680px);margin:auto}.business-frame{width:100%;max-width:620px}.business-list{display:grid;gap:10px;margin-top:20px}.business-option{width:100%;border:1px solid rgba(22,155,112,.22);background:rgba(255,255,255,.9);border-radius:15px;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:#163d32;cursor:pointer;transition:.2s ease}.business-option:hover{transform:translateY(-2px);border-color:#1aa979;box-shadow:0 12px 28px rgba(20,120,88,.12)}.business-option strong,.business-option small{display:block}.business-option small{margin-top:4px;color:#6d847b;text-transform:capitalize}.business-option b{font-size:22px;color:#0e956b}.business-signout{display:block;margin:16px auto 0;border:0;background:transparent;color:#5e756d;cursor:pointer}
