:root {
  --auth-bg: #171a1d;
  --auth-panel: #292c30;
  --auth-panel-deep: #222529;
  --auth-card: #303438;
  --auth-line: rgba(255,255,255,.075);
  --auth-text: #b7bec7;
  --auth-title: #eef1f5;
  --auth-muted: #7f8791;
  --auth-accent: #f1404b;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body.auth-page { min-height: 100vh; margin: 0; padding-top: 80px; color: var(--auth-text); background: var(--auth-bg); font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; font-size: 14px; line-height: 1.6; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page button,.auth-page input { font: inherit; }

.auth-shell { width: min(1060px,calc(100% - 40px)); min-height: calc(100vh - 178px); margin: 0 auto; padding: 42px 0; display: grid; place-items: center; }
.auth-card { width: 100%; display: grid; grid-template-columns: 40% 60%; border: 1px solid var(--auth-line); border-radius: 8px; overflow: hidden; background: var(--auth-panel); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.auth-aside { position: relative; min-height: 520px; padding: 58px 44px; overflow: hidden; background: linear-gradient(145deg,#26292d,#202326); }
.auth-aside::before { content: ""; position: absolute; width: 300px; height: 300px; right: -130px; top: -135px; border: 58px solid rgba(241,64,75,.08); border-radius: 50%; }
.auth-aside::after { content: ""; position: absolute; width: 220px; height: 220px; left: -130px; bottom: -145px; border: 42px solid rgba(45,115,255,.055); border-radius: 50%; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-kicker { display: inline-flex; min-height: 24px; padding: 0 9px; align-items: center; border-left: 2px solid var(--auth-accent); color: #9ca4ae; background: rgba(255,255,255,.035); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.auth-aside h1 { margin: 20px 0 10px; color: var(--auth-title); font-size: 32px; line-height: 1.25; }
.auth-aside > p { max-width: 310px; margin: 0; color: #929aa4; font-size: 14px; }
.auth-benefits { margin: 42px 0 0; padding: 0; display: grid; gap: 21px; list-style: none; }
.auth-benefits li { display: flex; align-items: flex-start; gap: 12px; }
.auth-benefits li > .css-icon { width: 25px; height: 25px; margin-top: 1px; padding: 5px; border-radius: 50%; color: #8fddb1; background: rgba(54,194,117,.09); }
.auth-benefits b,.auth-benefits small { display: block; }
.auth-benefits b { color: #d7dce2; font-size: 14px; }
.auth-benefits small { margin-top: 2px; color: #777f88; font-size: 12px; }

.auth-form-panel { padding: 45px 54px 36px; background: var(--auth-panel); }
.auth-heading { margin-bottom: 30px; display: flex; align-items: center; gap: 13px; }
.auth-heading-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: var(--auth-accent); box-shadow: 0 8px 18px rgba(241,64,75,.18); }
.auth-heading-icon .css-icon { font-size: 21px; }
.auth-heading h2 { margin: 0; color: var(--auth-title); font-size: 23px; line-height: 1.25; }
.auth-heading p { margin: 3px 0 0; color: var(--auth-muted); font-size: 12px; }
.auth-form { display: grid; gap: 17px; }
.auth-form-register { gap: 13px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { color: #cdd2d9; font-size: 13px; font-weight: 600; }
.auth-input { position: relative; height: 44px; display: flex; align-items: center; border: 1px solid rgba(255,255,255,.065); border-radius: 5px; background: #24272a; transition: border-color .18s ease,box-shadow .18s ease,background-color .18s ease; }
.auth-input:focus-within { border-color: rgba(241,64,75,.72); background: #26292c; box-shadow: 0 0 0 3px rgba(241,64,75,.08); }
.auth-input > .css-icon { width: 18px; height: 18px; margin-left: 13px; color: #737c86; }
.auth-input input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 0; outline: 0; color: #e3e7eb; background: transparent; }
.auth-input input::placeholder { color: #656d76; }
.auth-input input:-webkit-autofill { -webkit-text-fill-color: #e3e7eb; box-shadow: 0 0 0 1000px #24272a inset; }
.member-captcha-question { height: 42px; min-width: 112px; margin-right: 1px; padding: 0 12px; border: 0; border-left: 1px solid rgba(255,255,255,.065); color: #e3e7eb; background: #2b2e32; font: inherit; font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.member-captcha-question:hover { color: #fff; background: #34383d; }
.member-captcha-question:disabled { cursor: wait; opacity: .65; }
.password-toggle { width: 42px; height: 42px; flex: 0 0 42px; padding: 0; border: 0; display: grid; place-items: center; color: #7f8791; background: transparent; cursor: pointer; }
.password-toggle:hover { color: #cdd2d9; }
.password-toggle .css-icon { font-size: 17px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; color: #858d97; font-size: 12px; }
.auth-options > a,.auth-switch a,.agreement a { color: var(--auth-accent); }
.auth-options > a:hover,.auth-switch a:hover,.agreement a:hover { color: #ff616b; }
.check-row { display: inline-flex; align-items: center; gap: 7px; color: #8f979f; font-size: 12px; cursor: pointer; }
.check-row input { width: 15px; height: 15px; margin: 0; accent-color: var(--auth-accent); }
.agreement { align-items: flex-start; line-height: 1.55; }
.agreement input { margin-top: 2px; flex: 0 0 auto; }
.agreement a { margin: 0 2px; }
.auth-message { min-height: 20px; margin: -4px 0 -5px; color: #ff8d95; font-size: 12px; }
.auth-message.is-success { color: #69d49a; }
.auth-submit { height: 44px; padding: 0 18px; border: 0; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--auth-accent); font-weight: 700; cursor: pointer; box-shadow: 0 9px 20px rgba(241,64,75,.15); transition: background-color .18s ease,transform .18s ease; }
.auth-submit:hover { background: #d72f39; transform: translateY(-1px); }
.auth-submit:disabled { opacity: .68; cursor: wait; transform: none; }
.auth-switch { margin: 22px 0 0; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.055); color: #858d97; text-align: center; font-size: 13px; }
.password-strength { height: 15px; display: grid; grid-template-columns: repeat(3,1fr) auto; align-items: center; gap: 5px; }
.password-strength i { height: 3px; border-radius: 3px; background: #3a3e43; transition: background-color .18s ease; }
.password-strength span { margin-left: 4px; color: #69717a; font-size: 10px; }
.password-strength.level-1 i:nth-child(1) { background: #f1404b; }
.password-strength.level-2 i:nth-child(-n+2) { background: #ff8a18; }
.password-strength.level-3 i { background: #36c275; }
.password-strength.level-1 span { color: #e87880; }
.password-strength.level-2 span { color: #e6a254; }
.password-strength.level-3 span { color: #65c991; }
.auth-page .footer { width: min(1060px,calc(100% - 40px)); margin: 0 auto 28px; color: #646b74; text-align: center; font-size: 12px; }
.auth-page .top-right .top-tool.active { color: var(--auth-accent) !important; }

@media (max-width: 991.98px) {
  body.auth-page { padding-top: 64px; }
  .auth-page .mobile-category-panel { position: fixed; left: 12px; right: 12px; top: 76px; z-index: 430; display: none; padding: 10px; border-radius: 5px; background: #262829; box-shadow: 0 16px 38px rgba(0,0,0,.35); }
  .auth-page.mobile-category-open .mobile-category-panel { display: block; }
  .auth-page .mobile-primary-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .auth-page .mobile-primary-nav a { min-height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: #c5cad1; background: #303234; font-size: 13px; }
  .auth-page .mobile-primary-nav a.active { color: #fff; background: rgba(241,64,75,.22); }
  .auth-shell { width: min(680px,calc(100% - 24px)); min-height: auto; padding: 22px 0 28px; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { min-height: auto; padding: 28px 26px; }
  .auth-aside h1 { margin-top: 14px; font-size: 25px; }
  .auth-benefits { margin-top: 25px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .auth-benefits li { gap: 8px; }
  .auth-benefits small { display: none; }
  .auth-form-panel { padding: 30px 28px 26px; }
}

@media (max-width: 575.98px) {
  .auth-shell { width: 100%; padding: 12px; }
  .auth-card { border-radius: 6px; }
  .auth-aside { padding: 24px 20px; }
  .auth-aside > p { font-size: 13px; }
  .auth-benefits { grid-template-columns: 1fr; gap: 10px; }
  .auth-benefits li > .css-icon { width: 22px; height: 22px; padding: 4px; }
  .auth-benefits small { display: block; }
  .auth-form-panel { padding: 25px 20px 22px; }
  .auth-heading { margin-bottom: 23px; }
  .auth-heading h2 { font-size: 21px; }
  .auth-page .footer { width: 100%; margin: 8px auto 24px; padding: 0 12px; }
}

/* Keep account screens consistent with the larger member-center type scale. */
body.auth-page { font-size: 15px; }
.auth-page .auth-field label { font-size: 14px; }
.auth-page .auth-options,
.auth-page .check-row { font-size: 13px; }
