/* 20260819-crm-login-visual-refresh-v1 */
:root {
  --login-ink: #132825;
  --login-muted: #62736f;
  --login-teal: #087d72;
  --login-teal-dark: #05645c;
  --login-mint: #d9f1ec;
  --login-paper: rgba(255, 255, 255, .91);
  --login-line: rgba(19, 75, 68, .15);
  --login-shadow: 0 30px 80px rgba(18, 58, 53, .16), 0 4px 16px rgba(18, 58, 53, .08);
}

html { min-height: 100%; background: #eef7f4; }

body {
  min-height: 100svh;
  align-items: safe center;
  justify-items: center;
  padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(61, 184, 165, .18), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(246, 190, 96, .13), transparent 30%),
    linear-gradient(145deg, #f7fbfa 0%, #edf6f3 48%, #f8faf8 100%);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

body::before {
  width: min(42vw, 560px);
  aspect-ratio: 1;
  left: -15vw;
  top: -24vw;
  border: 1px solid rgba(8, 125, 114, .12);
  box-shadow: 0 0 0 48px rgba(8, 125, 114, .025), 0 0 0 96px rgba(8, 125, 114, .018);
}

body::after {
  width: 210px;
  height: 210px;
  right: -92px;
  bottom: -86px;
  background: rgba(8, 125, 114, .07);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 28px;
  background: var(--login-paper);
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--login-line);
  pointer-events: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.login-mark {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 17px 17px 17px 7px;
  color: #fff;
  background: linear-gradient(145deg, #0e9487, #066a61);
  box-shadow: 0 12px 28px rgba(8, 125, 114, .28), inset 0 1px rgba(255, 255, 255, .28);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.login-brand .eyebrow {
  margin: 0 0 3px;
  color: var(--login-teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.brand-copy {
  margin: 0;
  color: var(--login-muted);
  font-size: 13px;
  font-weight: 650;
}

.login-intro { margin-bottom: 24px; }

.login-intro h1 {
  margin: 0;
  color: var(--login-ink);
  font-size: clamp(30px, 8vw, 38px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.login-subtitle {
  max-width: 34ch;
  margin: 10px 0 0;
  color: var(--login-muted);
  font-size: 15px;
  line-height: 1.5;
}

.login-shell form { gap: 17px; }

.login-shell label,
.password-field > label {
  gap: 8px;
  color: #405652;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.login-shell input[type="text"],
.login-shell input[type="password"],
.login-shell input[name="login"] {
  min-height: 54px;
  border: 1px solid #cadbd7;
  border-radius: 15px;
  padding: 0 16px;
  color: var(--login-ink);
  background: rgba(255, 255, 255, .84);
  box-shadow: inset 0 1px 2px rgba(21, 63, 57, .035);
  font-size: 16px;
  font-weight: 650;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-shell input::placeholder { color: #92a29f; font-weight: 500; }

.login-shell input[type="text"]:focus,
.login-shell input[type="password"]:focus,
.login-shell input[name="login"]:focus {
  border-color: #25a99c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 125, 114, .11), 0 10px 24px rgba(8, 125, 114, .06);
}

.password-row {
  position: relative;
  display: block;
}

.password-row input { padding-right: 66px !important; }

/* 20260827-crm-login-password-eye-v1 */
.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  overflow: visible;
  border: 1px solid rgba(8, 125, 114, .10);
  border-radius: 13px;
  padding: 0;
  color: var(--login-teal-dark);
  background: #e9f6f3;
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
  font-size: 0;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.password-toggle:hover {
  color: #034d47;
  border-color: rgba(8, 125, 114, .22);
  background: #d9efeb;
  box-shadow: 0 5px 14px rgba(8, 125, 114, .10), inset 0 1px rgba(255, 255, 255, .72);
}

.password-toggle:active { transform: scale(.95); }

.password-eye-icon {
  display: block;
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-outline { stroke-width: 1.75; }
.password-eye-pupil { fill: currentColor; stroke: none; }
.password-eye-slash {
  opacity: 0;
  stroke: #a53f39;
  stroke-width: 2.25;
  transition: opacity 140ms ease;
}

.password-toggle[aria-pressed="true"] .password-eye-slash { opacity: 1; }

.password-toggle:focus-visible {
  outline: 3px solid rgba(8, 125, 114, .22);
  outline-offset: 2px;
}

.password-feedback {
  min-height: 16px;
  color: #71817e;
  font-size: 12px;
  font-weight: 650;
}

.remember {
  min-height: 48px;
  align-items: center;
  border: 1px solid rgba(8, 125, 114, .10);
  border-radius: 14px;
  padding: 10px 12px;
  color: #415651;
  background: rgba(233, 246, 243, .58);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.remember input { flex: 0 0 19px; width: 19px; height: 19px; }

.session-copy {
  margin: -5px 2px 0;
  color: #74827f;
  font-size: 12px;
  line-height: 1.45;
}

.login-submit {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, #0b897d 0%, #076d64 100%);
  box-shadow: 0 14px 30px rgba(8, 125, 114, .24);
  font-size: 15px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-submit:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 17px 34px rgba(8, 125, 114, .29); }
.login-submit:active { transform: translateY(1px); }

.login-submit span { font-size: 19px; line-height: 1; transition: transform 180ms ease; }
.login-submit:hover span { transform: translateX(3px); }

.telegram-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(19, 75, 68, .11);
  color: #72817e;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.error {
  margin: 0 0 18px;
  border: 1px solid rgba(193, 76, 67, .22);
  border-radius: 14px;
  padding: 12px 14px;
  color: #8b2924;
  background: #fff5f3;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  body { place-items: start center; padding-top: max(18px, env(safe-area-inset-top)); }
  .login-shell { margin: auto 0; border-radius: 24px; padding: 24px 20px; }
  .login-brand { margin-bottom: 22px; }
  .login-mark { width: 46px; height: 46px; flex-basis: 46px; border-radius: 15px 15px 15px 6px; }
  .login-intro { margin-bottom: 21px; }
  .login-subtitle { font-size: 14px; }
}

@media (max-width: 360px) {
  body { padding-inline: 10px; }
  .login-shell { padding: 21px 16px; border-radius: 21px; }
  .login-shell form { gap: 14px; }
}

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