/* --- чтобы центрирование всегда работало --- */
html,
body {
  height: 100%;
  margin: 0;
}

/* на мобильных безопаснее использовать viewport-единицу dVH */
.auth-wrapper {
  min-height: 100dvh;
  /* вся высота экрана */
  display: flex;
  align-items: center;
  /* центр по вертикали */
  justify-content: center;
  /* центр по горизонтали */
  padding: 24px;
  background: var(--bg, #111416);
}

/* Карточка как в референсе */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel, #161a1d);
  border: 1px solid var(--border, #242a2e);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
  padding: 28px;
}


.auth-card h1 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}

.auth-card form p {
  margin: 0 0 14px
}

.auth-card label {
  display: none;
}


.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  height: 48px;
  background: #2a2f33;
  border: 1px solid #3a4046;
  border-radius: 12px;
  color: #e9eef0;
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
}

.auth-card input::placeholder {
  color: #a8b0b6
}

.auth-card input:focus {
  outline: none;
  border-color: var(--accent, #ff5252);
  box-shadow: 0 0 0 3px rgba(255, 82, 82, .15)
}

/* Кнопка-пилюля */
.auth-card .btn-pill {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: 999px;
  background: var(--accent, #ff5252);
  color: var(--accent-fg, #111);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, transform .05s;
}

.auth-card .btn-pill:hover {
  background: var(--accent-press, #e24646)
}

.auth-card .btn-pill:active {
  transform: translateY(1px)
}

/* Низ карточки */
.auth-meta {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted, #9aa5ad);
}

.auth-meta a {
  color: var(--accent, #ff5252);
  text-decoration: none;
  font-weight: 600
}

.auth-meta a:hover {
  text-decoration: underline
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #2a2f33;
  border: 1px solid #3a4046;
  border-radius: 12px;
  padding: 0 14px;
  height: 48px;
  margin-bottom: 14px;
}

.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e9eef0;
  font-size: 15px;
  height: 100%;
  padding-left: 28px;
}

.input-wrapper input::placeholder {
  color: #a8b0b6;
}

.input-lock {
  position: absolute;
  left: 10px;
  font-size: 18px;
  color: #e9eef0;
}

.input-icon {
  position: absolute;
  right: 10px;
  font-size: 18px;
  color: #ff5252;
  cursor: pointer;
}

.input-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2f33;
  z-index: 0;
  transition: all .3s;
}

.input-wrapper.show .input-overlay {
  background: #ff5252;
}