@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2?v=4.1") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --login-ink: #28383e;
  --login-muted: #71828d;
  --login-accent: #68c5b7;
  --login-line: rgba(40, 56, 62, .13);
  --login-surface: rgba(255, 255, 255, .9);
}

@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/1/text-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--login-ink);
  background: #edf9f7;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button, input { font: inherit; }

.login-landing {
  position: relative;
  display: grid;
  min-height: 100dvh;
  padding: clamp(36px, 7vh, 76px) 24px 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 2%, rgba(181, 239, 248, .72), transparent 28rem),
    radial-gradient(circle at 88% 17%, rgba(207, 246, 220, .76), transparent 29rem),
    linear-gradient(155deg, #e8f8f7 0%, #effbf4 58%, #f8fcfa 100%);
}

.login-decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #b9ddd6;
  opacity: .58;
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(100%, 430px);
  margin: auto;
}

.login-intro { text-align: center; }
.login-mark { display: block; width: 82px; height: 82px; margin: 0 auto 28px; filter: drop-shadow(0 14px 20px rgba(75, 157, 144, .16)); }
.login-intro h1 { margin: 0; font-size: clamp(38px, 7vw, 54px); font-weight: 800; line-height: .98; letter-spacing: -.065em; }
.login-intro p { margin: 22px 0 clamp(42px, 6vh, 62px); color: #40525c; font-size: clamp(17px, 2.5vw, 21px); line-height: 1.32; }

.login-card { width: 100%; }
.login-card label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-card input {
  width: 100%;
  min-height: 60px;
  padding: 16px 20px;
  color: var(--login-ink);
  background: var(--login-surface);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(51, 100, 99, .07);
  font-size: 16px;
  outline: none;
  transition: box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.login-card input::placeholder { color: #939da8; }
.login-card input:focus { background: #fff; border-color: var(--login-accent); box-shadow: 0 0 0 4px rgba(104, 197, 183, .2); }
.login-card > input { margin-bottom: 14px; }

.password-field { position: relative; margin-bottom: 8px; }
.password-field input { padding-right: 62px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--login-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.password-toggle:hover { background: rgba(104, 197, 183, .12); }
.password-toggle:focus-visible, .forgot-password:focus-visible, .login-card button:focus-visible, .login-footnote a:focus-visible, .yandex-dialog button:focus-visible { outline: 3px solid rgba(104, 197, 183, .62); outline-offset: 3px; }
.password-toggle img { width: 24px; height: 24px; }

.forgot-password {
  display: block;
  margin: 0 0 24px auto;
  padding: 2px 0;
  color: #4b5c67;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  line-height: 1.3;
  cursor: default;
}

.login-submit {
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  color: #fff;
  background: linear-gradient(135deg, #303b3f, #1c2528);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 25px rgba(31, 44, 48, .2), inset 0 1px rgba(255, 255, 255, .18);
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 17px 28px rgba(31, 44, 48, .25), inset 0 1px rgba(255, 255, 255, .18); }

.login-divider { display: flex; align-items: center; gap: 16px; margin: 25px 0; color: #a3adb4; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: rgba(84, 113, 118, .19); }
.login-divider span { padding-top: 1px; }

.yandex-placeholder { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 26px; color: #000; background: #fff; border: 1px solid #000; border-radius: 12px; box-shadow: none; font-family: "YS Text", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1; text-align: center; cursor: pointer; }
.yandex-placeholder:hover, .yandex-placeholder:active { color: #000; background: #fff; box-shadow: none; transform: none; }
.yandex-placeholder:focus-visible { outline: 3px solid rgba(0, 0, 0, .24); outline-offset: 3px; }
.yandex-mark { display: block; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; }

.yandex-dialog { position: relative; width: min(calc(100% - 32px), 420px); padding: 34px 30px 30px; color: var(--login-ink); background: rgba(255, 255, 255, .98); border: 1px solid rgba(104, 197, 183, .24); border-radius: 28px; box-shadow: 0 28px 80px rgba(22, 43, 47, .28); text-align: center; }
.yandex-dialog::backdrop { background: rgba(28, 40, 44, .48); backdrop-filter: blur(7px); }
.yandex-dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: var(--login-ink); background: #f0f5f4; border: 0; border-radius: 50%; cursor: pointer; }
.yandex-dialog-close img { width: 20px; height: 20px; }
.yandex-dialog-mark { display: block; width: 64px; height: 64px; margin: 4px auto 20px; border-radius: 50%; }
.yandex-dialog h2 { margin: 0; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; }
.yandex-dialog p { margin: 14px 0 26px; color: var(--login-muted); font-size: 15px; line-height: 1.5; }
.yandex-dialog-ok { width: 100%; min-height: 52px; padding: 12px 18px; color: #fff; background: #222d31; border: 0; border-radius: 15px; font-weight: 750; cursor: pointer; }
.yandex-dialog-ok:hover { background: #11191c; }

.login-footnote { margin: 28px 0 0; color: #4b5b66; font-size: 15px; text-align: center; }
.login-footnote a { color: inherit; text-underline-offset: 3px; }
.login-footnote a:hover { color: #18776e; }
.error { margin: 0 0 16px; padding: 12px 15px; color: #933947; background: rgba(255, 239, 241, .92); border: 1px solid #f0cdd2; border-radius: 14px; font-size: 14px; text-align: center; }

@media (min-width: 640px) {
  .login-landing { padding: 54px 24px; }
  .login-shell { width: min(100%, 450px); }
  .login-mark { width: 92px; height: 92px; }
}

@media (min-width: 1024px) {
  .login-landing { padding: 56px 32px; }
  .login-shell { width: 440px; }
  .login-intro p { margin-bottom: 48px; }
}

@media (max-height: 720px) {
  .login-landing { display: block; overflow: auto; }
  .login-shell { padding: 24px 0; }
  .login-mark { width: 66px; height: 66px; margin-bottom: 16px; }
  .login-intro p { margin: 14px 0 26px; }
}

@media (max-width: 380px) {
  .login-landing { padding-right: 16px; padding-left: 16px; }
  .login-mark { width: 70px; height: 70px; margin-bottom: 20px; }
  .login-intro p { margin-bottom: 32px; }
  .yandex-placeholder { height: 56px; padding-inline: 26px; font-size: 16px; }
  .yandex-dialog { padding: 32px 22px 24px; border-radius: 24px; }
}

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