@media (max-width: 881px) {
 .auth-wrapper_body {
  min-height: calc(100dvh - var(--header-height) - (var(--wrapper-margin) * 2));
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
 }
}
.auth-wrapper {
  margin: 8px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 30px 24px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (max-width: 881px) {
  .auth-wrapper {
    max-width: 460px;
    margin: 20px auto;
    width: calc(100% - 16px);
    position: relative;
    height: 100%;
  }
}
.auth-header { text-align: center; margin-bottom: 24px; }
.auth-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f2f3f5;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.auth-logo img {
  width: 50px;
  height: 50px;
  background: #435f8b;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(to right, #435f8b, #64b3c4, #435e8a);
  background-size: auto;
  background-clip: border-box;
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: flowShine 4s ease-in-out infinite;
}
.auth-title { font-size: 22px; font-weight: 700; color: #111827; margin: 0 0 8px 0; }
.auth-subtitle { font-size: 14px; color: #6b7280; line-height: 1.5; margin: 0; }

/* Переключатель Вход/Рега */
.auth-tabs { display: flex; background: #f3f4f6; border-radius: 14px; padding: 4px; margin-bottom: 24px; }
.auth-tab {
    flex: 1; text-align: center; padding: 10px 0; font-size: 15px; font-weight: 600;
    color: #6b7280; text-decoration: none; border-radius: 10px; transition: all 0.2s ease; cursor: pointer;
}
.auth-tab.active { background: #ffffff; color: #111827; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }

/* Инпуты */
.auth-input-group { margin-bottom: 16px; text-align: left; }
.auth-label { display: block; font-size: 13px; font-weight: 600; color: #4b5563; margin-bottom: 6px; margin-left: 4px; }
.auth-input-wrapper { position: relative; }

input[type="text"].auth-input, input[type="password"].auth-input, input[type="text"].auth-select, input[type="password"].auth-select {
  width: 100%;
  background: #f3f4f6;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  color: #111827;
  box-sizing: border-box;
  transition: all 0.2s ease;
  outline: none;
  max-width: 100%;
  margin: 0;
  font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
}
.auth-input:focus, .auth-select:focus { background: #ffffff; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1); }
.auth-select { appearance: none; cursor: pointer; }
/* Выбор пола (Карточки) */
.gender-selector { display: flex; gap: 12px; margin-top: 4px; }
.gender-option { flex: 1; cursor: pointer; }
.gender-option input[type="radio"] { display: none; }
.gender-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 10px; background: #f3f4f6; border: 2px solid transparent; border-radius: 14px;
    color: #6b7280; transition: all 0.2s ease; user-select: none;
}
.gender-card svg { margin-bottom: 4px; transition: all 0.2s ease; }
.gender-card span { font-size: 14px; font-weight: 600; }
.gender-card:hover { background: #e5e7eb; }

/* Активное состояние для карточек пола */
.gender-option input[value="1"]:checked + .gender-card {
    background: #ffffff; border-color: #3b82f6; color: #3b82f6; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}
.gender-option input[value="0"]:checked + .gender-card {
    background: #ffffff; border-color: #ec4899; color: #ec4899; box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}
/* Глазок пароля */
.auth-eye {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 4px;
}
.auth-eye:hover { color: #4b5563; }

/* Кнопка */
.auth-btn {
    width: 100%; background: #2563eb; color: #ffffff; border: none; border-radius: 14px;
    padding: 16px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25); margin-top: 8px;
}
.auth-btn:active { transform: scale(0.98); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); }

/* Ошибки и ссылки */
.auth-error { color: #ef4444; background: #fef2f2; padding: 12px; border-radius: 12px; font-size: 13px; font-weight: 500; text-align: center; margin-bottom: 16px; }
.auth-forgot { display: block; text-align: center; margin-top: 20px; color: #4b5563; font-size: 14px; text-decoration: none; font-weight: 500; }
.auth-forgot:hover { color: #2563eb; }

/* Список профилей */
.profile-card {
    display: flex; align-items: center; background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
}
.profile-card:hover { background: #f3f4f6; border-color: #d1d5db; }
.profile-card-add { justify-content: center; background: transparent; border: 2px dashed #d1d5db; color: #6b7280; font-weight: 600; }
.profile-card-add:hover { border-color: #2563eb; color: #2563eb; }
.profile-del-btn { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 8px; border-radius: 50%; }
.profile-del-btn:hover { background: #fee2e2; color: #ef4444; }