/* Luvio Auth — карточка: слева фото, справа форма; на ПК без скролла */

:root {
  --auth-form-max-width: 400px;
  --auth-space-unit: 8px;
  --auth-space-1: 8px;
  --auth-space-2: 16px;
  --auth-space-3: 24px;
  --auth-space-4: 32px;
  --auth-gap: 16px;
  --auth-card-max-width: 920px;
  --auth-card-radius: 16px;
  --auth-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.auth-page {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  flex: 1 1 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--auth-space-3) var(--auth-space-2) var(--auth-space-4);
  background: linear-gradient(180deg, rgba(184, 150, 249, 0.08) 0%, var(--LUVIO-bg) 40%);
}

.auth-section {
  width: 100%;
  max-width: var(--auth-card-max-width);
  min-width: 0;
  flex-shrink: 0;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* Карточка: тень, скругление, на desktop — две колонки */
.auth-card {
  width: 100%;
  max-width: 100%;
  background: var(--LUVIO-bg);
  border-radius: var(--auth-card-radius);
  box-shadow: var(--auth-card-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

.auth-card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

/* Левая колонка — изображение (на mobile сверху, на desktop слева) */
.auth-card-media {
  width: 100%;
  min-height: 200px;
  max-height: 280px;
  background: linear-gradient(135deg, rgba(107, 60, 203, 0.15) 0%, rgba(184, 150, 249, 0.1) 100%);
  flex-shrink: 0;
  overflow: hidden;
}

.auth-card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Правая колонка — форма */
.auth-card-form {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--auth-space-4) var(--auth-space-3);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.auth-card-form .auth-inner {
  display: block;
  max-width: var(--auth-form-max-width);
  margin: 0 auto;
  padding: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}

/* Панели входа и регистрации: переключение без смены URL */
.auth-card-form .auth-panel {
  display: none;
}

.auth-card-form .auth-panel--active {
  display: flex;
  flex-direction: column;
}

/* Кнопка переключения «Sign in» / «Sign up» — как ссылка */
.auth-card-form .auth-switch-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--LUVIO-primary);
  cursor: pointer;
  text-decoration: none;
}

.auth-card-form .auth-switch-link:hover {
  text-decoration: underline;
}

.auth-card-form .auth-header {
  text-align: center;
  margin-bottom: var(--auth-space-4);
}

.auth-card-form .auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--auth-space-2);
  margin-bottom: var(--auth-space-3);
}

.auth-card-form .auth-logo {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
}

.auth-card-form .auth-title {
  font-family: var(--LUVIO-font);
  font-size: 1.5rem;
  font-weight: var(--LUVIO-font-h1);
  color: var(--LUVIO-text);
  line-height: 1.25;
  margin: 0 0 var(--auth-space-1);
}

.auth-card-form .auth-subtitle {
  font-family: var(--LUVIO-font);
  font-size: 1rem;
  font-weight: var(--LUVIO-font-description);
  color: var(--LUVIO-description);
  line-height: 1.5;
  margin: 0;
}

.auth-card-form .auth-body form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--auth-gap);
}

.auth-card-form .inpt-la-main {
  margin-top: 0;
}

.auth-card-form .sign-text-nam {
  display: block;
  font-family: var(--LUVIO-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--LUVIO-text);
  letter-spacing: 0.02em;
  padding-bottom: var(--auth-space-1);
  text-transform: none;
}

.auth-card-form .auth-date-hint {
  font-weight: 400;
  color: var(--LUVIO-description);
  font-size: 0.8125rem;
}

/* Дата: английская локаль задаётся через lang="en" на .auth-card-form */
.auth-card-form .sign-input-main {
  display: flex;
  align-items: center;
  position: relative;
  border-radius: 12px;
  border: 2px solid var(--LUVIO-substrate);
  background: var(--LUVIO-substrate);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-card-form .sign-input-main:focus-within {
  border-color: var(--LUVIO-primary-light);
  box-shadow: 0 0 0 3px rgba(129, 72, 247, 0.15);
}

.auth-card-form .sign-input-main input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--LUVIO-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--LUVIO-text);
  line-height: 1.5;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 10px;
}

.auth-card-form .sign-input-main input::placeholder {
  color: var(--LUVIO-inactive);
}

.auth-card-form .field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--LUVIO-error, #dc3545);
  font-weight: 500;
}

.auth-card-form .auth-error {
  margin-bottom: var(--auth-space-2);
  font-size: 0.9rem;
  color: var(--LUVIO-error);
}

.auth-card-form .auth-consent {
  margin-top: 0;
}

.auth-card-form .auth-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--auth-space-2);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--LUVIO-text);
}

.auth-card-form .auth-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.auth-card-form .auth-checkbox-label a {
  text-decoration: underline;
}

.auth-card-form .auth-social {
  margin-top: var(--auth-space-3);
  padding-top: var(--auth-space-2);
  border-top: 1px solid var(--LUVIO-substrate, #eee);
}

.auth-card-form .auth-social-label {
  font-size: 0.8125rem;
  color: var(--LUVIO-description);
  margin: 0 0 var(--auth-space-2);
  text-align: center;
}

.auth-card-form .auth-social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--auth-space-2);
  justify-content: center;
}

.auth-card-form .auth-social-form {
  display: inline-block;
  margin: 0;
}

.auth-card-form .auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--LUVIO-substrate);
  background: var(--LUVIO-bg);
  color: var(--LUVIO-text);
  transition: border-color 0.2s, background 0.2s, transform 0.15s ease;
}

.auth-card-form .auth-social-btn:hover {
  transform: scale(1.05);
  border-color: var(--LUVIO-primary-light);
  background: rgba(129, 72, 247, 0.06);
}

.auth-card-form .auth-social-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.auth-card-form .auth-social-google { border-color: #dadce0; }
.auth-card-form .auth-social-google:hover { border-color: #4285f4; background: rgba(66, 133, 244, 0.06); }
.auth-card-form .auth-social-facebook { border-color: #e7e8ec; }
.auth-card-form .auth-social-facebook:hover { border-color: #1877f2; background: rgba(24, 119, 242, 0.06); }
.auth-card-form .auth-social-apple { border-color: #000; color: #000; }
.auth-card-form .auth-social-apple:hover { background: rgba(0, 0, 0, 0.06); }

.auth-card-form .sing-in-up {
  font-family: var(--LUVIO-font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--LUVIO-description);
  text-align: center;
  margin-top: var(--auth-space-3);
  margin-bottom: 0;
}

.auth-card-form .sing-in-up a {
  color: var(--LUVIO-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-card-form .sing-in-up a:hover {
  text-decoration: underline;
}

.auth-card-form .auth-footer {
  margin-top: var(--auth-space-4);
  padding-top: var(--auth-space-1);
  flex-shrink: 0;
}

.auth-card-form .auth-footer .next-btn {
  width: 100%;
  height: 48px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--LUVIO-font);
  font-size: 1.0625rem;
  font-weight: var(--LUVIO-font-button);
  border-radius: var(--LUVIO-radius-button);
  border: none;
  background: var(--LUVIO-primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(107, 60, 203, 0.25);
}

.auth-card-form .auth-footer .next-btn:active {
  transform: scale(0.99);
}

.auth-card-form .auth-footer .next-btn:hover {
  background: var(--LUVIO-btn-primary-hover);
}

.auth-card-form .auth-footer .next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-card-form .auth-body {
  flex-grow: 1;
  min-height: 0;
}

.main_content .site_content.auth-page {
  width: 100%;
  box-sizing: border-box;
}

/* Desktop: две колонки (фото слева, форма справа), карточка по центру, без скролла страницы */
@media (min-width: 992px) {
  .auth-page {
    justify-content: center;
    padding: var(--auth-space-4);
  }

  .auth-card-inner {
    flex-direction: row;
    max-height: min(85vh, 640px);
  }

  .auth-card-media {
    width: 42%;
    min-width: 320px;
    min-height: 0;
    max-height: none;
  }

  .auth-card-media-img {
    min-height: 100%;
  }

  .auth-card-form {
    width: 58%;
    padding: var(--auth-space-4) 40px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .auth-card-form .auth-inner {
    max-width: 100%;
  }

  .main_content .site_content.auth-page {
    justify-content: center;
    padding: var(--auth-space-4);
  }
}

.auth-buttons,
.splash-btns-bottom,
.onbording-btn-main {
  position: static !important;
}
