.auth-modern {
  --auth-primary: var(--bg_orange, #ff7350);
  --auth-primary-dark: #dc4f32;
  --auth-ink: #172033;
  --auth-muted: #667085;
  --auth-line: #e4e7ec;
  --auth-soft: #f6f8fc;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background: radial-gradient(circle at 8% 8%, rgba(255,115,80,.14), transparent 34%), radial-gradient(circle at 92% 88%, rgba(18,88,117,.12), transparent 32%), #f8fafc;
}

.auth-modern__shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(300px,.9fr) minmax(420px,1.1fr);
  overflow: hidden;
  border: 1px solid rgba(16,24,40,.08);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(16,24,40,.12);
}

.auth-modern__visual {
  position: relative;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg,#15243c 0%,#173f51 60%,#1d6270 100%);
}

.auth-modern__visual::before,
.auth-modern__visual::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-modern__visual::before { width: 330px; height: 330px; top: -145px; right: -115px; background: rgba(255,115,80,.35); }
.auth-modern__visual::after { width: 260px; height: 260px; left: -120px; bottom: -105px; border: 52px solid rgba(255,255,255,.07); }
.auth-modern__brand,.auth-modern__pitch,.auth-modern__trust { position: relative; z-index: 1; }
.auth-page-body { margin: 0; background: #f8fafc; }
.auth-page-body #main-content { min-height: 100vh; }
.auth-modern__brand { width: fit-content; max-width: 210px; display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.auth-modern__brand img { display: block; max-width: 170px; max-height: 48px; object-fit: contain; object-position: left center; }

.auth-modern__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-modern__pitch h2 { max-width: 410px; margin: 0 0 16px; color: #fff; font-size: clamp(31px,4vw,46px); line-height: 1.08; letter-spacing: -.04em; }
.auth-modern__pitch p { max-width: 390px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.7; }
.auth-modern__trust { display: flex; align-items: center; gap: 11px; color: rgba(255,255,255,.76); font-size: 13px; }
.auth-modern__trust-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 10px; background: rgba(255,255,255,.1); }

.auth-modern__panel { display: flex; align-items: center; padding: 52px clamp(30px,5vw,68px); }
.auth-modern__form-wrap { width: 100%; max-width: 480px; margin: 0 auto; }
.auth-modern__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--auth-muted); font-size: 14px; font-weight: 600; }
.auth-modern__back:hover { color: var(--auth-primary); }
.auth-modern__title { margin: 0 0 9px; color: var(--auth-ink); font-size: clamp(29px,4vw,38px); line-height: 1.16; letter-spacing: -.035em; }
.auth-modern__subtitle { margin: 0 0 30px; color: var(--auth-muted); font-size: 15px; line-height: 1.65; }
.auth-modern__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.auth-modern__field { margin-bottom: 19px; }
.auth-modern__field--full { grid-column: 1 / -1; }
.auth-modern__label { display: block; margin-bottom: 8px; color: #344054; font-size: 13px; font-weight: 700; }

.auth-modern__control {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  color: var(--auth-ink);
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(16,24,40,.03);
  transition: border-color .18s, box-shadow .18s;
}

.auth-modern__control::placeholder { color: #98a2b3; }
.auth-modern__control:focus { outline: none; border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(255,115,80,.13); }
.auth-modern__control.is-invalid { border-color: #d92d20; }
.auth-modern__error { display: block; margin-top: 7px; color: #b42318; font-size: 12px; font-weight: 600; }
.auth-modern__password { position: relative; }
.auth-modern__password .auth-modern__control { padding-right: 52px; }

.auth-modern__toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  width: 42px;
  height: 42px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(-50%);
  padding: 0 !important;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  z-index: 2;
}
.auth-modern__toggle:hover { background: var(--auth-soft); color: var(--auth-ink); }
.auth-modern__toggle svg { width: 19px; height: 19px; }
.auth-modern__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 2px 0 23px; font-size: 14px; }
.auth-modern__check { display: flex; align-items: flex-start; gap: 9px; color: var(--auth-muted); line-height: 1.5; }
.auth-modern__check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--auth-primary); }
.auth-modern a { color: var(--auth-primary-dark); font-weight: 700; }
.auth-modern a:hover { color: var(--auth-primary); }

.auth-modern__submit {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--auth-primary),#eb5b3d);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(235,91,61,.22);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.auth-modern__submit:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(235,91,61,.29); }
.auth-modern__submit:focus { outline: 3px solid rgba(255,115,80,.22); outline-offset: 3px; }
.auth-modern__divider { display: flex; align-items: center; gap: 14px; margin: 25px 0 18px; color: #98a2b3; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.auth-modern__divider::before,.auth-modern__divider::after { content: ""; height: 1px; flex: 1; background: var(--auth-line); }
.auth-modern__socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.auth-modern__social { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--auth-line); border-radius: 12px; background: #fff; transition: transform .18s,border-color .18s,box-shadow .18s; }
.auth-modern__social:hover { transform: translateY(-2px); border-color: #cfd4dc; box-shadow: 0 8px 18px rgba(16,24,40,.08); }
.auth-modern__social img { width: 21px; height: 21px; object-fit: contain; }
.auth-modern__footer { margin: 25px 0 0; color: var(--auth-muted); font-size: 14px; text-align: center; }
.auth-modern__notice { margin-bottom: 22px; padding: 13px 15px; border: 1px solid #abefc6; border-radius: 11px; background: #ecfdf3; color: #067647; font-size: 13px; line-height: 1.5; }
.auth-modern__captcha { margin: 4px 0 20px; overflow-x: auto; }
.auth-modern--register .auth-modern__visual { min-height: 760px; }

@media (max-width: 860px) {
  .auth-modern { padding: 28px 16px; }
  .auth-modern__shell { grid-template-columns: 1fr; max-width: 620px; }
  .auth-modern__visual { min-height: auto; padding: 30px; }
  .auth-modern__pitch { margin: 54px 0; }
  .auth-modern__trust { display: none; }
  .auth-modern__panel { padding: 40px 30px 46px; }
}

@media (max-width: 520px) {
  .auth-modern { padding: 0; background: #fff; }
  .auth-modern__shell { border: 0; border-radius: 0; box-shadow: none; }
  .auth-modern__visual { padding: 24px; }
  .auth-modern__pitch { margin: 36px 0 18px; }
  .auth-modern__pitch h2 { font-size: 30px; }
  .auth-modern__pitch p { font-size: 14px; }
  .auth-modern__panel { padding: 34px 22px 42px; }
  .auth-modern__back { margin-bottom: 26px; }
  .auth-modern__grid { grid-template-columns: 1fr; }
  .auth-modern__field--full { grid-column: auto; }
  .auth-modern__row { align-items: flex-start; }
}

[dir="rtl"] .auth-modern__brand img { object-position: right center; }
[dir="rtl"] .auth-modern__toggle { right: auto; left: 5px; }
[dir="rtl"] .auth-modern__password .auth-modern__control { padding-right: 15px; padding-left: 52px; }
