/* Auth pages v28 — premium split layout with icons */
.page-auth {
  background: #faf8f9;
}
.page-auth .auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  background: linear-gradient(165deg, #fff0f6 0%, #fff 38%, #faf8f9 100%);
}
.page-auth .auth-split {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}
.page-auth .auth-brand {
  display: none;
}
.page-auth .auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
}
.page-auth .auth-back-row {
  margin-bottom: 14px;
}
.page-auth .auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 26px 22px 28px;
  border-radius: 22px;
  border: 1px solid rgba(233, 30, 99, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(26, 18, 24, 0.1);
}
.page-auth .auth-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #e91e63, #ff6090);
  color: #fff;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
}
.page-auth .auth-logo-mark svg {
  width: 26px;
  height: 26px;
}
.page-auth .auth-card h1 {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px;
  color: #1a1218;
  letter-spacing: -0.02em;
}
.page-auth .auth-sub {
  text-align: center;
  color: #6d5f66;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 22px;
}
.page-auth .auth-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: #f5eef2;
  padding: 5px;
  border-radius: 14px;
}
.page-auth .auth-tab {
  flex: 1;
  padding: 11px 10px;
  border: none;
  border-radius: 11px;
  background: transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #6d5f66;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.page-auth .auth-tab.active {
  background: #fff;
  color: #c2185b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.page-auth .auth-field {
  margin-bottom: 14px;
}
.page-auth .auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4a3d44;
  margin-bottom: 6px;
}
.page-auth .auth-input-wrap {
  position: relative;
}
.page-auth .auth-input-wrap .auth-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #b08a9a;
  pointer-events: none;
}
.page-auth .auth-input-wrap .form-input {
  padding-left: 44px;
  border-radius: 14px;
  min-height: 50px;
  font-size: 16px;
  border: 1.5px solid #ece4e8;
  background: #fff;
}
.page-auth .auth-input-wrap .form-input:focus {
  border-color: rgba(233, 30, 99, 0.45);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12);
}
.page-auth .auth-card .btn-primary {
  border-radius: 14px;
  min-height: 50px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 6px;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.28);
}
.page-auth .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #9a8a92;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-auth .auth-divider::before,
.page-auth .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ece4e8;
}
.page-auth .auth-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.page-auth .auth-perk {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: #fff5f9;
  border: 1px solid rgba(233, 30, 99, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: #6d5f66;
  line-height: 1.3;
}
.page-auth .auth-perk svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 6px;
  color: #e91e63;
}
.page-auth .auth-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: #6d5f66;
}
.page-auth .auth-foot a {
  color: #e91e63;
  font-weight: 700;
  text-decoration: none;
}
.page-auth .auth-forgot {
  text-align: right;
  margin: -4px 0 14px;
}
.page-auth .auth-forgot a {
  color: #e91e63;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
@media (min-width: 900px) {
  .page-auth .auth-page {
    padding: 24px;
    align-items: center;
    justify-content: center;
  }
  .page-auth .auth-split {
    grid-template-columns: 1fr 1.05fr;
    min-height: auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(26, 18, 24, 0.12);
    border: 1px solid rgba(233, 30, 99, 0.08);
    background: #fff;
  }
  .page-auth .auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    background: linear-gradient(160deg, #e91e63 0%, #ad1457 55%, #880e4f 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .page-auth .auth-brand::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -80px;
    right: -60px;
  }
  .page-auth .auth-brand h2 {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.15;
    position: relative;
    z-index: 1;
  }
  .page-auth .auth-brand p {
    font-size: 16px;
    line-height: 1.55;
    opacity: 0.92;
    margin: 0 0 28px;
    max-width: 320px;
    position: relative;
    z-index: 1;
  }
  .page-auth .auth-brand-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
  }
  .page-auth .auth-brand-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
  }
  .page-auth .auth-brand-list li svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    opacity: 0.95;
  }
  .page-auth .auth-panel {
    padding: 40px 36px;
  }
  .page-auth .auth-back-row {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}
@media (max-width: 899px) {
  .page-auth .auth-page {
    align-content: end;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(26, 18, 24, 0.35), rgba(26, 18, 24, 0.5)), linear-gradient(165deg, #fff0f6, #fff);
  }
  .page-auth .auth-card {
    animation: authSheetIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
    max-height: min(90vh, 680px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-auth .auth-card::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: rgba(26, 18, 24, 0.12);
    margin: -8px auto 14px;
  }
}
