:root {
  --bg: #ffffff;
  --bg2: #fafafa;
  --text: #0b0b0b;
  --muted: rgba(0, 0, 0, 0.66);
  --stroke: rgba(0, 0, 0, 0.1);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
  --shadow2: 0 10px 26px rgba(0, 0, 0, 0.1);
  --radius: 18px;
}
html,
body {
  touch-action: manipulation; /* убирает double-tap zoom во многих браузерах */
}

/* page wrapper */
.auth {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 22px 0 34px;
}

.auth__wrap {
  width: min(520px, 100%);
}

/* card */
.auth__card {
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow2);
  padding: 18px;
}

/* header */
.auth__title {
  margin: 0 0 6px;
  font-size: clamp(26px, 4.8vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 1000;
}

.auth__subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* form */
.auth__form {
  display: grid;
  gap: 12px;
}

.auth__label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.82);
}

.auth__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
  outline: none;
  font-weight: 700;
}

.auth__input:focus {
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.auth__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.auth__small {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.62);
}

.auth__link {
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* buttons */
.btn--block {
  width: 100%;
}

.auth__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: rgba(0, 0, 0, 0.52);
  font-weight: 900;
  font-size: 12px;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.auth__fineprint {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  text-align: center;
}

/* mobile tighten */
@media (max-width: 420px) {
  .auth__card {
    padding: 16px;
  }
}
html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
.auth {
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: 24px 0; /* чтобы не прилипало к краям */
}
.auth__forgot {
  justify-self: start;
  margin-top: -6px;
  font-size: 13px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.62);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth__forgot:hover {
  color: rgba(0, 0, 0, 0.82);
}
/* video background */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2; /* уходит под весь контент */
  pointer-events: none; /* чтобы не мешало кликам */
}

/* лёгкая “вуаль”, чтобы текст читался */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      900px 500px at 15% 0%,
      rgba(255, 255, 255, 0.55),
      transparent 60%
    ),
    radial-gradient(
      700px 480px at 85% 10%,
      rgba(255, 255, 255, 0.45),
      transparent 60%
    ),
    radial-gradient(
      900px 620px at 60% 90%,
      rgba(255, 255, 255, 0.4),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.75)
    );
}
.passField {
  position: relative;
}

.passField__input {
  padding-right: 46px; /* место под глаз */
}

.passField__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 34px;
  height: 34px;
  border-radius: 10px;

  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;

  background: transparent; /* если хочешь вообще без плашки */
  /* либо оставь плашку, но без рамки:
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  */

  width: 34px;
  height: 34px;
  border-radius: 10px;

  display: grid;
  place-items: center;

  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.passField__toggle:active {
  transform: translateY(-50%) scale(0.98);
}
.passField__toggle:focus,
.passField__toggle:focus-visible {
  outline: none;
  box-shadow: none;
}
/* Google button layout */
.btn--google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn--google .btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.btn--google svg {
  display: block;
}
