:root { --green: #15803d; --deep: #064e31; --ink: #0f172a; }
* { box-sizing: border-box; }
body.auth-shell {
  margin: 0;
  height: var(--auth-vh, 100dvh);
  min-height: var(--auth-vh, 100dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: #06351f url('../images/auth-banner.jpg?v=55') center center / cover no-repeat;
  background-attachment: fixed;
}
body.auth-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 28, 16, .18), rgba(4, 20, 12, .28));
  pointer-events: none;
}
.auth-top, .auth-main, .auth-foot { position: relative; z-index: 1; }
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
}
.auth-brand { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.auth-brand img { height: 46px; width: auto; }
.auth-brand small { color: #166534; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-tools { display: flex; align-items: center; gap: 14px; }
.auth-tools a, .auth-lang { color: #14532d; text-decoration: none; font-weight: 800; font-size: 14px; }
.auth-icon-back { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #d1fae5; place-items: center; background: #fff; }
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding: 24px 16px;
}
.auth-card {
  width: min(460px, 100%);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(134, 239, 172, .9);
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(4, 30, 18, .28);
  padding: 26px 22px 20px;
  animation: auth-in .35s ease;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.auth-mark { height: 54px; width: auto; margin: 0 auto 8px; display: block; }
.auth-home { margin: 0 0 4px; text-align: center; }
.auth-home a { color: #15803d; font-weight: 800; font-size: 14px; text-decoration: none; }
.auth-home a:hover { text-decoration: underline; }
.auth-card h1 { margin: 8px 0 6px; text-align: center; color: var(--deep); font-size: 1.7rem; letter-spacing: .01em; }
.auth-lead { margin: 0 0 14px; text-align: center; color: #475569; line-height: 1.45; }
.auth-card label { display: block; margin-top: 12px; font-size: 13px; font-weight: 800; color: #14532d; }
.auth-card .field { width: 100%; margin-top: 6px; border: 1px solid #d1fae5; border-radius: 12px; padding: 12px 14px; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
.auth-card .field:focus { outline: none; border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); scroll-margin-block: 30%; }
.auth-card .field.is-bad { animation: auth-shake .35s linear; border-color: #e11d48; }
@keyframes auth-shake { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.auth-pass { position: relative; display: block; }
.auth-pass .field { padding-right: 64px; }
.auth-pass button { position: absolute; right: 4px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; background: transparent; color: #166534; cursor: pointer; display: grid; place-items: center; }
.auth-pass button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-pass button .eye-shut,
.auth-pass button.is-revealed .eye-open { display: none; }
.auth-pass button.is-revealed .eye-shut { display: block; }
.auth-pass input::-ms-reveal,
.auth-pass input::-ms-clear { display: none; }
.auth-row, .auth-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.auth-row a, .auth-switch a { color: #15803d; font-weight: 800; text-decoration: none; }
.check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 600 !important; color: #334155 !important; }
.check input { margin-top: 3px; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 14px;
  border: 0; border-radius: 999px; background: linear-gradient(180deg, #22c55e, #15803d); color: #fff;
  font: 800 15px/1 Manrope, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 18px rgba(21,128,61,.25);
}
.auth-btn:hover { filter: brightness(1.05); }
.auth-btn.ghost { background: #fff; color: #14532d; border: 1.5px solid #bbf7d0; box-shadow: none; }
.auth-btn:disabled { opacity: .65; cursor: wait; }
.auth-btn.is-loading { color: transparent; position: relative; }
.auth-btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0 10px; color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; height: 1px; background: #e2e8f0; }
.auth-social { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.auth-social button { border: 1px solid #e2e8f0; background: #fff; border-radius: 12px; min-height: 44px; font-weight: 800; cursor: pointer; color: #0f172a; }
.auth-social button:hover { border-color: #86efac; transform: translateY(-1px); }
.auth-social span { display: block; font-size: 14px; }
.auth-switch { text-align: center; color: #475569; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-split[hidden] { display: none; }
.auth-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 8px; padding: 0; }
.auth-steps li { flex: 1; height: 5px; border-radius: 99px; background: #d1fae5; }
.auth-steps li.is-on, .auth-steps li.is-done { background: #15803d; }
.auth-step-label { margin: 0; text-align: center; color: #166534; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.auth-strength { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.auth-strength i { flex: 1; height: 6px; border-radius: 99px; background: #e2e8f0; position: relative; overflow: hidden; }
.auth-strength i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--pw, 20%); background: #e11d48; }
.auth-strength.is-fair i::before { width: 45%; background: #d97706; }
.auth-strength.is-good i::before { width: 70%; background: #16a34a; }
.auth-strength.is-strong i::before { width: 100%; background: #064e31; }
.auth-strength em { font-style: normal; font-size: 12px; font-weight: 800; color: #14532d; }
.auth-rules { margin: 8px 0 0; padding-left: 18px; color: #64748b; font-size: 12px; }
.auth-rules .is-met { color: #15803d; }
.auth-flash { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.auth-flash.err { background: #fff1f2; color: #9f1239; animation: auth-shake .35s linear; }
.auth-flash.ok { background: #ecfdf5; color: #166534; }
.auth-badge { width: 74px; height: 74px; margin: 4px auto 8px; border-radius: 999px; display: grid; place-items: center; background: #16a34a; color: #fff; font-size: 34px; font-weight: 800; box-shadow: 0 10px 20px rgba(22,163,74,.3); }
.auth-badge.mail { background: #064e31; }
.auth-mail { text-align: center; font-weight: 800; color: #064e31; }
.auth-secure, .auth-wait { text-align: center; color: #64748b; font-size: 12px; }
.auth-quick { display: flex; justify-content: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.auth-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; text-align: center; text-decoration: none; color: #fff; font-size: 12px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.auth-quick span { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; color: #fff; }
.q-green { background: #16a34a; }
.q-blue { background: #1d4ed8; }
.q-red { background: #dc2626; }
.q-gold { background: #ca8a04; }
.auth-quick svg { width: 20px; height: 20px; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; padding: 16px; color: #fff; font-size: 12px; text-align: center; }
.auth-foot a { color: #fff; text-decoration: none; font-weight: 700; }
.auth-socials { display: flex; gap: 8px; }
.auth-socials a { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.auth-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5; background: #064e31; color: #fff; border-radius: 12px; padding: 12px 14px; max-width: min(420px, calc(100% - 24px)); box-shadow: 0 12px 24px rgba(0,0,0,.2); }
.auth-toast[hidden] { display: none; }
@media (max-width: 800px) {
  body.auth-shell { background-attachment: scroll; background-position: center center; }
  .auth-back, .auth-lang { display: none; }
  .auth-icon-back { display: grid; }
  .auth-social { grid-template-columns: 1fr 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-card { padding: 20px 16px 16px; }
}
