* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  min-width: 320px;
  padding: 24px;
  display: grid;
  place-items: center;
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(2,10,25,.16),rgba(2,10,25,.24)),
    url("/avtovhod.webp") center center / cover no-repeat,
    #080f1d;
  color: #101b32;
}

.access-card {
  width: min(470px, 100%);
  padding: 36px 38px 31px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}

.access-mark {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.access-mark img { display: block; width: 38px; height: 38px; }

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.047em;
}

.access-intro {
  margin: 14px 0 0;
  color: #718096;
  font-size: 13px;
  line-height: 1.65;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: #455268;
  font-size: 12px;
  font-weight: 720;
}

.input-wrap,
.password-wrap {
  position: relative;
  display: block;
}

.input-wrap > svg,
.password-wrap > .input-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #77869b;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

input {
  width: 100%;
  height: 46px;
  min-width: 0;
  padding: 0 15px 0 45px;
  border: 1px solid #dfe5ec;
  border-radius: 11px;
  outline: 0;
  background: #fbfcfd;
  color: #0c1930;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input::placeholder { color: #a2adba; opacity: 1; }
input:hover { border-color: #c5cfda; }
input:focus { border-color: #8997aa; box-shadow: 0 0 0 4px rgba(7, 19, 41, .06); }
button { cursor: pointer; font: inherit; }

.password-field { display: grid; gap: 7px; }
.password-wrap input { padding-right: 52px; }

.password-wrap button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #78869a;
  transition: color .16s ease, background .16s ease;
}

.password-wrap button:hover { background: #edf1f5; color: #0c1930; }
.password-wrap button:focus-visible { outline: 2px solid #7d8ba0; outline-offset: 1px; }
.password-wrap button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye-slash { display: none; }
[aria-pressed="true"] .eye-slash { display: block; }

.access-submit {
  min-height: 46px;
  margin-top: 2px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #ef233c;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
  transition: background .16s ease;
}

.access-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.access-submit:hover { background: #d91831; }
.access-submit:focus-visible { outline: 3px solid rgba(23, 55, 96, .32); outline-offset: 2px; }
.access-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.access-error { margin: -4px 0 0; color: #bc2541; font-size: 11px; line-height: 1.5; }
.access-notice { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #b7d9c7; border-radius: 10px; background: #f0faf4; color: #245b40; font-size: 13px; line-height: 1.5; }

footer {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  text-align: center;
}

footer::before,
footer::after { content: ""; height: 1px; background: #e3e9f0; }
footer a { color: #6f7c90; font-size: 9px; font-weight: 600; line-height: 1.5; text-underline-offset: 3px; white-space: nowrap; }
footer a:hover { color: #0c1930; }
.access-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  body { padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); }
  .access-card { width: 100%; padding: 30px 22px 25px; border-radius: 18px; }
  .access-mark { margin-bottom: 18px; }
  h1 { font-size: 30px; }
  .access-intro { font-size: 12px; }
  form { margin-top: 22px; }
  footer { margin-top: 20px; gap: 9px; }
}

@media (max-width: 340px) {
  body { padding: 8px; }
  .access-card { padding-inline: 19px; }
  h1 { font-size: 27px; }
  footer { gap: 7px; }
  footer a { font-size: 8px; }
}

/* Activation inputs have no leading icons. */
.partner-activation-page .access-card {
  width: min(440px, 100%);
  padding: 32px 34px 29px;
  border-radius: 17px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}
.partner-activation-page .access-mark { margin-bottom: 16px; }
.partner-activation-page h1 { font-size: 29px; line-height: 1.12; }
.partner-activation-page .access-intro { margin-top: 10px; line-height: 1.5; }
.partner-activation-page form { gap: 11px; margin-top: 20px; }
.partner-activation-page fieldset { display: grid; gap: 11px; min-width: 0; margin: 0; padding: 0; border: 0; }
.activation-step { margin: 16px 0 0; color: #455268; font-size: 12px; font-weight: 650; }
.activation-back { display: inline-flex; align-items: center; gap:7px; min-height:32px; margin: -8px 0 8px -4px; padding: 0 4px; border: 0; background: transparent; color: #455268; font-size: 12px; font-weight: 650; }
.activation-back::before { content: "←"; font-size: 19px; line-height: 1; }
.activation-back:hover { color: #0c1930; }
.activation-back:focus-visible { outline: 2px solid #7d8ba0; outline-offset: 2px; border-radius: 4px; }
.activation-back:disabled { opacity: .6; cursor: wait; }
.partner-activation-page label { gap: 5px; }
.partner-activation-page .input-wrap input { height: 43px; padding: 0 13px; }
.partner-activation-page .password-wrap input { padding-right: 52px; }
.partner-activation-page .password-wrap button { top: 50%; transform: translateY(-50%); }
.partner-activation-page .access-submit { min-height: 43px; justify-content: center; border-radius: 9px; }
.partner-activation-page .access-submit:hover { transform: none; }
.partner-activation-page footer { margin-top: 18px; }
@media (max-width: 600px) {
  .partner-activation-page .access-card { padding: 27px 23px 24px; }
  .partner-activation-page h1 { font-size: 27px; }
}
