/* ===== Base layout ===== */
.auth-page .content { padding-top: 56px; min-height: calc(100vh - 182px); }
.auth-page .auth-hint { text-align:center; margin:8px 0 6px; font-size:12px; }
.auth-page .auth-hint__danger { color:#b70015; background:#ffd7d7; display:inline-block; padding:4px 8px; border-radius:6px; }

.auth-page .auth-oauth { display:flex; justify-content:center; margin:6px 0 10px; }
.auth-page .auth-google { display:flex; gap:8px; align-items:center; border:1px solid #e2e6ea; padding:10px 14px; border-radius:10px; background:#fff; }
.auth-page .auth-google img { width:18px; height:18px; }

.auth-page .auth-card {
  max-width: 560px; margin: 0 auto 40px; padding: 12px;
  background: transparent;
}

/* ===== Tabs (Авторизация / Регистрация) ===== */
.auth-page .auth-tabs{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.auth-page .auth-tab{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 10px;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  appearance: none;
  box-shadow: none;
  outline: none;
  z-index: 2;                   /* текст выше полосы */
}
.auth-page .auth-tab:focus-visible{
  box-shadow: 0 0 0 3px rgba(28,150,117,.16);
  border-radius: 8px;
}
.auth-page .auth-tab[aria-selected="true"]{
  color: #fff;
}

/* Активная «заливка» половины */
.auth-page .auth-tabs__underline{
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 100%;
  background: #1c9675;
  transform: translateX(0);
  transition: transform .25s ease;
  z-index: 1;                   
  border-radius: 10px;
}

/* ===== Forms ===== */
.auth-page .auth-form { display: none; }
.auth-page .auth-form.is-active {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-page .auth-form label { display:block; margin:10px 0 6px; font-size:14px; font-weight:600; }
.auth-page .auth-form input {
  width:100%; padding:12px 14px; border:1px solid #dfe3e6; border-radius:12px; font-size:16px; background:#fff;
}
.auth-page .auth-form input:focus { outline: none; border-color:#1c9675; box-shadow:0 0 0 3px rgba(28,150,117,.16); }

.auth-page .btn-primary {
  width:100%; margin-top:14px; padding:14px 16px; border:0; border-radius:12px;
  background:#1c9675; color:#fff; font-weight:800; font-size:16px; box-shadow:0 6px 14px rgba(28,150,117,.28);
}
.auth-page .btn-primary:active { transform: translateY(1px); }
.auth-page .btn-link { display:block; text-align:center; margin-top:12px; text-decoration:underline; }

/* ===== Desktop tweak (≥992px) ===== */
@media (min-width: 992px) { .auth-page .auth-card { padding: 0 8px; } }

/* ===== Hide homepage blocks on /auth ===== */
.auth-page .home_screen_container,
.auth-page .home_screen_inner,
.auth-page .home_screen,
.auth-page .new_tovar,
.auth-page .wrapper,
.auth-page .request_table,
.auth-page .tradingview-widget-container { display:none !important; }

/* ===== Footer spacing ===== */
.auth-page #auth { margin-bottom: 120px; }

/* ===== Mobile polish ===== */
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
@media (max-width: 991px) {
  .auth-page .content { padding-left: 12px; padding-right: 12px; }
  .auth-page .auth-card { padding-left: 8px; padding-right: 8px; }
  .auth-page .auth-tabs { margin-left: 8px; margin-right: 8px; }
  .auth-page .auth-form input,
  .auth-page .btn-primary,
  .auth-page .btn-link { width: 100%; }
  .auth-page .footer { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
}

/* ===== Компактнее /auth ===== */
.auth-page .content { padding-top: 30px; }     /* было 56px */
.auth-page #auth { margin-bottom: 60px; }      /* было 120px */
.auth-page .auth-card { margin: 0 auto 24px; padding: 8px; }
.auth-page .auth-hint { margin: 4px 0 2px; font-size: 11px; }
.auth-page .auth-oauth { margin: 6px 0 8px; }
.auth-page .auth-tabs { margin-bottom: 8px; }
.auth-page .auth-tab { padding: 8px 10px; }
.auth-page .auth-form.is-active { gap: 8px; }
.auth-page .auth-form label { margin: 6px 0 4px; font-size: 13px; }
.auth-page .auth-form input { padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.auth-page .btn-primary { margin-top: 10px; padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.auth-page .btn-link { margin-top: 8px; }

@media (max-width: 991px) {
  .auth-page .content { padding-top: 12px; }
  .auth-page .auth-card { margin-bottom: 20px; padding-left: 6px; padding-right: 6px; }
}

/* ===== Verify section INSIDE /auth (если используется) ===== */
.auth-page .verify-card { text-align: center; }
.auth-page .verify-card .btn-primary {
  display: inline-block;
  width: auto !important;
  max-width: none !important;
  padding: 6px 14px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
  margin: 8px 0 !important;
  box-shadow: none !important;
}
