/* 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: block;
  padding: 24px 12px 40px;
  background: linear-gradient(180deg, rgba(184, 150, 249, 0.08) 0%, var(--LUVIO-bg) 40%);
}

.auth-section {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  flex-shrink: 0;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

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

.auth-card--single {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card--single .auth-card-inner {
  flex-direction: column;
  max-height: none;
}

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

.auth-card-inner {
  display: block;
  width: 100%;
  min-height: 0;
  align-items: stretch;
}

/* Левая колонка — изображение (на mobile сверху, на desktop слева) */
.auth-card-media {
  display: none;
}

.auth-card-media-img {
  display: none;
}

/* Правая колонка — форма */
.auth-card-form {
  flex: 1 1 auto;
  min-width: 0;
  padding: 28px 24px 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent;
}

.auth-card-form .auth-inner {
  display: block;
  max-width: none;
  margin: 0;
  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: 22px;
}

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

.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.6rem;
  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: 14px;
}

.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.is-invalid {
  border-color: var(--LUVIO-error, #dc3545);
  background: rgba(255, 29, 29, 0.06);
}

.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.has-password-toggle input {
  padding-right: 46px;
}

.auth-card-form input[type="password"]::-ms-reveal,
.auth-card-form input[type="password"]::-ms-clear {
  display: none;
}

.auth-card-form .password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.auth-card-form .password-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-card-form .sign-input-main .media-icons-lets + input {
  padding-left: 52px;
}

.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 .field-error.field-error--above {
  margin: 0 0 6px;
}

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

.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-buttons--single {
  width: 100%;
  justify-content: center;
}

.auth-card-form .auth-social-buttons--single .auth-social-form {
  width: 100%;
  display: block;
}

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

.auth-card-form .auth-social-form[hidden] {
  display: none !important;
}

.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--wide {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  gap: 10px;
  border-radius: var(--LUVIO-radius-button);
  font-size: 1rem;
  font-weight: 600;
}

.auth-card-form .auth-social-text {
  display: inline-block;
  font-family: var(--LUVIO-font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--LUVIO-text);
}

.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-btn--wide:hover {
  transform: none;
}

.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 .auth-forgot {
  margin-top: 8px;
  text-align: right;
}

.auth-card-form .auth-forgot-link {
  font-size: 0.875rem;
  color: var(--LUVIO-primary);
  font-weight: 600;
  text-decoration: none;
}

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

.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: 20px;
  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: 22px;
  padding-top: 0;
  flex-shrink: 0;
}

.auth-card-form .auth-footer--stacked {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-card-form .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  animation: authSpin 0.8s linear infinite;
  vertical-align: middle;
}

.auth-card-form .next-btn.is-loading {
  opacity: 0.75;
}

.auth-card-form .skip-btn.is-loading {
  opacity: 0.75;
}

.auth-card-form .skip-btn .btn-spinner {
  border-color: rgba(107, 60, 203, 0.25);
  border-top-color: var(--LUVIO-primary);
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

.auth-card-form .auth-footer--stacked .skip-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
}

.auth-card-form .auth-footer--stacked .skip-btn:disabled {
  background: #e6e6e6;
  color: #9a9a9a;
  cursor: not-allowed;
}

.auth-card-form .auth-footer-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--LUVIO-description);
}

.auth-card-form .auth-footer-links .auth-switch-link {
  font-weight: 600;
}

.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 {
    padding: 40px 24px 64px;
    background: linear-gradient(180deg, rgba(184, 150, 249, 0.08) 0%, var(--LUVIO-bg) 40%);
  }

  .auth-section {
    max-width: 1200px;
    height: auto;
  }

  .auth-card {
    max-width: 640px;
    height: auto;
    background: var(--LUVIO-bg);
    border-radius: 20px;
    box-shadow: var(--auth-card-shadow);
    border: 1px solid rgba(88, 65, 168, 0.12);
    margin: 0 auto;
  }

  .auth-card-inner {
    display: block;
    height: auto;
    max-height: none;
  }

  .auth-card-media {
    display: none;
  }

  .auth-card-media-img {
    display: none;
  }

  .auth-card-form {
    padding: 40px 48px 36px;
    background: var(--LUVIO-bg);
    overflow: visible;
  }

  .auth-card-form .auth-inner {
    max-width: none;
    margin: 0;
  }

  .auth-card-form .auth-header {
    text-align: center;
  }

  .auth-card-form .auth-brand {
    display: inline-flex;
  }

  .auth-card-form .auth-footer {
    margin-top: 24px;
  }

  .main_content .site_content.auth-page {
    justify-content: flex-start;
    align-items: stretch;
    padding: 40px 24px 64px;
  }
}

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