@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --auth-bg: #eef2ef;
  --auth-card: #ffffff;
  --auth-ink: #17211c;
  --auth-muted: #66736c;
  --auth-border: #dce4df;
  --auth-dark: #111915;
  --auth-green: #228b5a;
  --auth-green-dark: #176b43;
  --store-accent: #228b5a;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.auth-page {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(34,139,90,.12), transparent 30rem),
    linear-gradient(135deg, #f8faf8 0%, var(--auth-bg) 100%);
  font-family: 'Manrope', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.auth-page a { color: inherit; }
.auth-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: min(720px, calc(100vh - 64px));
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(470px, 1.12fr);
  overflow: hidden;
  background: var(--auth-card);
  border: 1px solid rgba(23,33,28,.08);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(23,33,28,.13);
}

.auth-showcase {
  position: relative;
  min-height: 100%;
  padding: 42px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(155deg, rgba(255,255,255,.06), transparent 48%),
    var(--auth-dark);
  isolation: isolate;
}
.auth-showcase::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.auth-showcase::after {
  width: 180px; height: 180px; left: -95px; bottom: 60px;
  border: 34px solid color-mix(in srgb, var(--store-accent) 32%, transparent);
}

.auth-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.auth-brand-logo {
  width: 120px; min-height: 54px; padding: 7px 10px;
  display: grid; place-items: center;
}
.auth-brand-logo.is-store { width: 76px; height: 76px; padding: 9px; background: #fff; border-radius: 20px; }
.auth-brand-logo img { display: block; max-width: 100%; max-height: 70px; object-fit: contain; }
.auth-brand-copy { display: grid; gap: 3px; }
.auth-brand-copy small { color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.auth-brand-copy strong { max-width: 230px; font-size: 17px; line-height: 1.25; }

.auth-intro { margin: auto 0; padding: 66px 0 48px; }
.auth-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 8px 12px;
  color: #dff9e9; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.auth-kicker i { color: var(--store-accent); }
.auth-intro h1 { margin: 0; max-width: 390px; font-size: clamp(35px, 5vw, 55px); line-height: 1.03; letter-spacing: -.05em; }
.auth-intro > p { max-width: 430px; margin: 22px 0 28px; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.75; }
.auth-intro ul { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.auth-intro li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.87); font-size: 13px; }
.auth-intro li i { color: var(--store-accent); font-size: 18px; }
.auth-support {
  width: fit-content; display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 700;
  transition: color .2s ease, transform .2s ease;
}
.auth-support:hover { color: var(--store-accent); transform: translateX(3px); }
.auth-support i { font-size: 20px; }

.auth-form-side { padding: 42px clamp(40px, 6vw, 78px) 30px; display: flex; flex-direction: column; justify-content: center; }
.auth-card { width: 100%; max-width: 480px; margin: auto; }
.auth-card-heading { margin-bottom: 28px; }
.auth-card-heading p { margin: 0 0 8px; color: var(--auth-green); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-card-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.045em; }
.auth-card-heading > span:not(.auth-mobile-logo) { display: block; margin-top: 9px; color: var(--auth-muted); font-size: 14px; }
.auth-mobile-logo { display: none; }

.auth-alert {
  margin-bottom: 22px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 10px;
  color: #385b48; background: #edf7f1; border: 1px solid #cae9d6; border-radius: 12px;
  font-size: 13px; line-height: 1.5;
}
.auth-alert.is-error { color: #943c36; background: #fff3f1; border-color: #f2cdc8; }
.auth-alert.is-success { color: #176b43; }
.auth-alert i { margin-top: 2px; font-size: 17px; }

.auth-field { display: grid; gap: 8px; margin-bottom: 17px; color: var(--auth-ink); font-size: 13px; font-weight: 700; }
.auth-input { height: 53px; display: flex; align-items: center; overflow: hidden; border: 1px solid var(--auth-border); border-radius: 13px; background: #fafbfa; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.auth-input:focus-within { border-color: var(--auth-green); background: #fff; box-shadow: 0 0 0 4px rgba(34,139,90,.1); }
.auth-input > i { padding-left: 16px; color: #7a8780; font-size: 17px; }
.auth-input input { min-width: 0; flex: 1; height: 100%; padding: 0 14px; color: var(--auth-ink); background: transparent; border: 0; outline: 0; font: inherit; font-weight: 500; }
.auth-input input::placeholder { color: #98a29c; }
.auth-password-toggle { width: 48px; height: 100%; display: grid; place-items: center; color: #657169; background: transparent; border: 0; cursor: pointer; }
.auth-password-toggle:hover { color: var(--auth-green); }

.auth-options { margin: 3px 0 23px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--auth-muted); font-size: 12px; }
.auth-options a { color: var(--auth-green-dark); font-weight: 700; text-decoration: none; }
.auth-options a:hover { text-decoration: underline; }
.auth-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-check input { position: absolute; opacity: 0; pointer-events: none; }
.auth-check span { width: 18px; height: 18px; display: grid; place-items: center; background: #fff; border: 1px solid #cbd4ce; border-radius: 5px; }
.auth-check input:checked + span { background: var(--auth-green); border-color: var(--auth-green); box-shadow: inset 0 0 0 4px var(--auth-green); }
.auth-check input:checked + span::after { content: '✓'; color: #fff; font-size: 12px; line-height: 1; }
.auth-captcha { min-height: 78px; margin: 0 0 18px; overflow-x: auto; }
.auth-submit {
  width: 100%; min-height: 53px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 12px;
  color: #fff; background: var(--auth-green); border: 0; border-radius: 13px;
  font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 26px rgba(34,139,90,.2); transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.auth-submit:hover { background: var(--auth-green-dark); transform: translateY(-1px); box-shadow: 0 15px 30px rgba(34,139,90,.25); }
.auth-submit i { font-size: 16px; }

.auth-divider { margin: 27px 0 18px; display: flex; align-items: center; gap: 12px; color: #929c96; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--auth-border); }
.auth-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 20px; }
.auth-switch a { display: inline-flex; align-items: center; gap: 7px; color: #506058; text-decoration: none; font-size: 12px; font-weight: 700; }
.auth-switch a:hover { color: var(--auth-green); }
.auth-legal { max-width: 480px; margin: 26px auto 0; color: #89948e; text-align: center; font-size: 10px; line-height: 1.6; }
.auth-actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.auth-back {
  min-height: 53px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: #506058; background: #f4f6f4; border: 1px solid var(--auth-border); border-radius: 13px;
  text-decoration: none; font-size: 13px; font-weight: 800;
}
.auth-back:hover { color: var(--auth-green); border-color: #b8c9bf; }
.auth-help { margin: 18px 0 0; color: var(--auth-muted); font-size: 12px; line-height: 1.65; }

@media (max-width: 900px) {
  .auth-shell { width: min(720px, calc(100% - 28px)); grid-template-columns: 1fr; margin: 14px auto; border-radius: 22px; }
  .auth-showcase { min-height: auto; padding: 24px 28px; }
  .auth-intro { display: none; }
  .auth-support { margin: 24px 0 0; }
  .auth-form-side { padding: 46px clamp(26px, 8vw, 72px) 30px; }
}

@media (max-width: 520px) {
  body.auth-page { background: #fff; }
  .auth-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .auth-showcase { padding: 20px; }
  .auth-brand-logo { width: 104px; padding-left: 0; }
  .auth-brand-logo.is-store { width: 58px; height: 58px; padding: 7px; border-radius: 15px; }
  .auth-brand-copy strong { max-width: 180px; font-size: 14px; }
  .auth-support { margin-top: 18px; font-size: 12px; }
  .auth-form-side { padding: 34px 20px 24px; justify-content: flex-start; }
  .auth-card-heading { margin-bottom: 24px; }
  .auth-card-heading h2 { font-size: 30px; }
  .auth-options { align-items: flex-start; }
  .auth-actions { grid-template-columns: 1fr; }
  .auth-back { order: 2; }
  .auth-captcha { transform-origin: left top; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
