.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, .82fr) minmax(480px, 1.18fr); background: var(--surface); }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 42px 7vw 52px; color: white; background: #172554; }
.auth-aside::before, .auth-aside::after { content: ""; position: absolute; border: 1px solid rgba(147, 197, 253, .18); border-radius: 50%; }
.auth-aside::before { width: 420px; height: 420px; right: -210px; top: 15%; }
.auth-aside::after { width: 250px; height: 250px; right: -85px; top: 28%; }
.auth-aside .brand { position: relative; z-index: 1; color: white; }
.aside-copy { position: relative; z-index: 1; max-width: 410px; }
.aside-copy h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 45px); line-height: 1.18; letter-spacing: -.035em; }
.aside-copy p { margin: 0; color: #bfdbfe; font-size: 16px; }
.aside-footer { position: relative; z-index: 1; color: #93c5fd; font-size: 13px; line-height: 1.8; }
.aside-footer a { color: #dbeafe; font-weight: 600; }
.aside-footer a:hover { color: white; }
.auth-mobile-footer { display: none; }

.register-page .auth-aside { justify-content: flex-start; gap: 64px; padding: 42px clamp(28px, 4vw, 64px) 32px; background: #1b2b52; }
.register-page .auth-aside::before, .register-page .auth-aside::after { display: none; }
.register-page .brand { gap: 14px; font-size: 28px; }
.register-page .brand img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.register-page .aside-copy { max-width: 480px; }
.register-page .aside-copy h2 { margin-bottom: 26px; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.45; letter-spacing: 0; }
.register-page .trial-entitlement { display: block; margin-top: 22px; }
.register-page .aside-copy p { color: #b9c8e5; font-size: 18px; line-height: 1.75; }
.trial-benefits { display: grid; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.trial-benefits li { display: flex; align-items: flex-start; gap: 12px; color: #d1dcf0; font-size: 17px; line-height: 1.7; }
.trial-benefits svg { flex: 0 0 24px; width: 24px; height: 24px; margin-top: 2px; stroke: #7cdab3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.register-page .aside-footer { margin-top: auto; color: #b9c8e5; }
.register-page .auth-heading p { color: var(--primary-dark); font-size: 16px; font-weight: 600; line-height: 1.6; }

.auth-main { min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 42px 28px; }
.auth-wrap { width: 100%; max-width: 420px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 34px; color: var(--muted); font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--primary); }
.auth-heading { margin-bottom: 30px; }
.auth-heading h1 { margin: 0 0 7px; font-size: 31px; line-height: 1.25; letter-spacing: -.03em; }
.auth-heading p { margin: 0; color: var(--muted); }
.auth-heading .password-reset-warning { margin-top: 10px; color: #dc2626; font-size: 14px; font-weight: 700; line-height: 1.55; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 7px; color: #374151; font-size: 14px; font-weight: 700; }
.form-control { width: 100%; height: 46px; padding: 0 13px; color: var(--text); background: white; border: 1px solid var(--border); border-radius: 8px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-control::placeholder { color: #9ca3af; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.form-control[readonly] { color: #6b7280; background: #f3f4f6; cursor: not-allowed; }
.form-control[readonly]:focus { border-color: var(--border); box-shadow: none; }
.form-control.is-error { border-color: var(--error); }
.form-control.is-error:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .1); }
.form-error { min-height: 19px; margin-top: 4px; color: var(--error); font-size: 13px; line-height: 1.45; }
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 66px; }
.password-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 4px 6px; color: var(--primary-dark); background: transparent; border: 0; font-size: 13px; font-weight: 700; cursor: pointer; }

.captcha-row, .code-row { display: grid; grid-template-columns: 1fr 128px; gap: 10px; }
.captcha-box { height: 46px; display: flex; align-items: center; justify-content: center; padding: 0 10px; color: #1e3a8a; background: #eff6ff; border: 1px solid #dbeafe; border-radius: 8px; font-size: 16px; font-weight: 800; letter-spacing: .03em; cursor: pointer; user-select: none; }
.captcha-box:hover { background: #dbeafe; }
.code-button { height: 46px; padding: 0 12px; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid #bfdbfe; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.code-button:hover { background: #dbeafe; }
.code-button:disabled { opacity: .6; cursor: not-allowed; }

.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 22px; font-size: 14px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 8px; color: #4b5563; cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--primary); }
.text-link { color: var(--primary-dark); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.terms-group { margin-bottom: 22px; }
.terms-group .form-error { padding-left: 24px; }
.auth-bottom { margin: 24px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.auth-notice { margin-bottom: 22px; padding: 18px; color: #374151; background: var(--primary-soft); border: 1px solid #dbeafe; border-radius: 10px; }
.auth-notice strong { display: block; margin-bottom: 5px; }
.auth-notice p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .auth-page { display: block; }
  .auth-aside { min-height: auto; padding: 22px 24px; }
  .register-page .auth-aside { gap: 0; padding: 22px 24px; }
  .register-page .brand { font-size: 22px; }
  .register-page .brand img { width: 36px; height: 36px; }
  .auth-aside .aside-copy, .auth-aside .aside-footer { display: none; }
  .auth-main { min-height: calc(100vh - 80px); align-items: flex-start; padding-top: 34px; }
  .back-link { margin-bottom: 28px; }
  .auth-mobile-footer { display: block; padding: 20px 24px 26px; color: var(--muted); background: var(--surface); text-align: center; font-size: 13px; line-height: 1.8; }
  .auth-mobile-footer a { color: var(--primary-dark); font-weight: 600; }
}

@media (max-width: 480px) {
  .auth-main { padding: 28px 18px 48px; }
  .auth-heading h1 { font-size: 27px; }
  .captcha-row, .code-row { grid-template-columns: minmax(0, 1fr) 116px; }
  .form-meta { align-items: flex-start; }
}
