*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-card: rgb(31, 31, 36);
  --bg-input: rgb(31, 31, 36);
  --bg-tab-wrap: rgb(14, 14, 15);
  --text: rgb(250, 250, 255);
  --text-dark: rgb(31, 31, 36);
  --text-muted: rgba(250, 250, 255, 0.5);
  --btn-primary-bg: rgb(250, 250, 255);
  --btn-primary-text: rgb(31, 31, 36);
  --tab-active-bg: rgb(31, 31, 36);
  --input-border: rgb(250, 250, 255);
  --radius-card: 44px;
  --radius-input: 20px;
  --radius-btn: 20px;
  --radius-tab: 18px;
}

body {
  font-family: "YS Text", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background-color: #0a0f0a;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("https://yastatic.net/s3/passport-auth-customs/customs/_/7acf7249.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Login: центр через auth-layout-wrapper, низ — AuthFooter (как password.html) */
body.login-pwl {
  display: block;
}

body.login-pwl #app.login-pwl-root {
  min-height: 100vh;
}

body.login-pwl .auth-layout-wrapper.flex.with-footer {
  min-height: 100vh;
}

/* ── Card ── */
.ya-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.ya-card {
  background: var(--bg-card);
  /* 2.75rem как у .auth-layout в эталоне (80650) */
  border-radius: 2.75rem;
  padding: 2rem;
  width: 376px;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Logo ── */
.ya-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* как .auth-header { margin-bottom: var(--pwl-section-margin) } → 2rem */
  margin-bottom: 2rem;
  --id-logo-yandex-color: rgb(250, 250, 255);
  --id-logo-brand-color: rgb(250, 250, 255);
}
.ya-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

/* ── Title ── */
.ya-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  text-align: center;
  margin-bottom: 20px;
}
.ya-subtitle {
  display: none;
}

/* ── Tabs (как segment-picker ya_acb94c27 в 55368: h 56px, r 20px, pad 2px, gap 4px, opt-pad 20px) ── */
.ya-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: var(--bg-tab-wrap);
  border-radius: 20px;
  padding: 2px;
  margin-bottom: 12px;
  min-height: 56px;
  box-sizing: border-box;
}
.ya-tab {
  flex: 1;
  min-height: 0;
  border: none;
  cursor: pointer;
  border-radius: 18px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: normal 500 16px/22px "YS Text", Arial, sans-serif;
  color: var(--text-muted);
  background: transparent;
  transition: background .15s, color .15s, box-shadow .15s;
}
.ya-tab.active {
  background: var(--tab-active-bg);
  color: var(--text);
  box-shadow: 0 0 2px rgba(41, 41, 51, 0.04), 0 2px 6px rgba(41, 41, 51, 0.1);
}
.ya-tab:hover:not(.active) {
  color: var(--text);
}

/* ── Input field ── */
.ya-field {
  margin-bottom: 12px;
}
.ya-label { display: none; }

.ya-input-wrap {
  position: relative;
}
.ya-input {
  width: 100%;
  height: 56px;
  background: var(--bg-input);
  border: none;
  border-radius: var(--radius-input);
  padding: 14px 20px;
  font-size: 20px;
  color: var(--text);
  outline: none;
  font-family: "YS Text", Arial, sans-serif;
  box-shadow: inset 0 0 0 2px var(--input-border);
  transition: box-shadow .15s;
}
.ya-input::placeholder {
  color: rgba(250, 250, 255, 0.4);
  font-size: 20px;
}
.ya-input:focus {
  box-shadow: inset 0 0 0 2px rgb(250, 250, 255);
}

.ya-input-wrap--password .ya-input {
  padding-right: 52px;
}
.ya-eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}
.ya-eye-btn:hover { color: var(--text); }

/* ── Social icons row (крупнее эталона add-user: круг ~52px, глиф ~32px) ── */
.ya-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.ya-social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: background .15s;
  padding: 0;
  flex-shrink: 0;
}
.ya-social-btn:hover {
  background: rgba(250, 250, 255, 0.08);
}
.ya-social-btn svg {
  width: 32px;
  height: 32px;
  display: block;
}
.ya-social-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* ── Buttons ── */
.ya-btn-primary {
  width: 100%;
  height: 56px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 8px;
  font-family: "YS Text", Arial, sans-serif;
  transition: opacity .15s;
}
.ya-btn-primary:hover { opacity: .9; }
.ya-btn-primary:active { opacity: .8; }

.ya-btn-secondary {
  width: 100%;
  height: 56px;
  background: transparent;
  color: var(--text);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "YS Text", Arial, sans-serif;
  margin-bottom: 4px;
  box-shadow: rgba(250, 250, 255, 0.14) 0px 0px 0px 2px inset;
  transition: background .15s, box-shadow .15s;
}
.ya-btn-secondary:hover {
  background: rgba(250,250,255,.06);
  box-shadow: rgba(250, 250, 255, 0.22) 0px 0px 0px 2px inset;
}

/* ── User badge (password page) ── */
.ya-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(250,250,255,.06);
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.ya-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ya-user-info { display: flex; flex-direction: column; gap: 2px; }
.ya-user-login { font-size: 15px; font-weight: 500; color: var(--text); }
.ya-change-user { font-size: 12px; color: rgba(250,250,255,.5); text-decoration: none; }
.ya-change-user:hover { color: var(--text); }

/* ── Footer ── */
.ya-footer-link {
  text-align: center;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(250,250,255,.5);
}
.ya-footer-link a { color: rgba(250,250,255,.5); text-decoration: none; }
.ya-footer-link a:hover { color: var(--text); }

.ya-legal {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(250,250,255,.4);
  text-align: center;
  max-width: 376px;
}
.ya-legal a { color: rgba(250,250,255,.4); }

/* ── Bottom promo ── */
.ya-promo {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(250,250,255,.7);
}
.ya-promo a { color: rgba(250,250,255,.9); text-decoration: none; display: block; margin-top: 2px; font-weight: 500; }
.ya-promo a:hover { text-decoration: underline; }

/* ── Divider (removed in favour of gap) ── */
.ya-divider { display: none; }

/* Responsive */
@media (max-width: 420px) {
  .ya-card { width: 100%; border-radius: 28px; padding: 24px 20px; }
  .ya-input { font-size: 17px; }
  .ya-input::placeholder { font-size: 17px; }
}
