.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 92%, rgba(234,219,210,0.78), transparent 34%),
    var(--bg-soft);
}

.auth-page main {
  min-height: calc(100vh - 83px);
}

.auth-wrapper {
  min-height: calc(100vh - 83px);
  padding: 56px 24px;
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(970px, 100%);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
}

.auth-wrapper-register {
  padding-block: 24px;
}

.auth-wrapper-register .auth-shell {
  min-height: 0;
}

.auth-wrapper-register .auth-aside {
  padding-block: 34px;
}

.auth-wrapper-register .auth-card {
  padding-block: 34px;
}

.auth-wrapper-register .auth-card-heading {
  margin-bottom: 16px;
}

.auth-wrapper-register .auth-card-heading h1 {
  font-size: clamp(30px, 3vw, 38px);
}

.auth-wrapper-register .auth-form {
  gap: 10px;
}

.auth-wrapper-register .auth-links {
  margin-top: 14px;
}

.auth-aside {
  position: relative;
  padding: 54px 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(255,255,255,0.7);
  background: var(--navy);
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

.auth-aside::before {
  width: 340px;
  height: 340px;
  right: -190px;
  top: -160px;
}

.auth-aside::after {
  width: 230px;
  height: 230px;
  left: -130px;
  bottom: -120px;
}

.auth-aside > * {
  position: relative;
  z-index: 1;
}

.auth-aside-mark,
.auth-heading-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 18px;
}

.auth-aside .eyebrow {
  color: var(--gold);
}

.auth-aside h2 {
  color: #fff;
  font-size: clamp(38px, 4vw, 52px);
}

.auth-aside > div > p {
  margin-top: 20px;
  font-size: 13px;
}

.auth-assurance {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-assurance > i {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 12px;
}

.auth-assurance strong,
.auth-assurance small {
  display: block;
}

.auth-assurance strong {
  color: #fff;
  font-size: 12px;
}

.auth-assurance small {
  margin-top: 2px;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
}

.auth-steps {
  display: grid;
  gap: 15px;
}

.auth-steps span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 600;
}

.auth-steps i {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-style: normal;
  font-size: 11px;
}

.auth-card {
  padding: 52px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface-strong);
}

.auth-card-heading {
  margin-bottom: 28px;
}

.auth-card-heading h1 {
  font-size: clamp(40px, 4vw, 50px);
}

.auth-card-heading > p {
  margin-top: 11px;
  color: var(--text-soft);
  font-size: 12px;
}

.auth-heading-icon {
  margin-bottom: 22px;
  border-color: var(--border);
  color: var(--warm-dark);
  background: var(--warm-soft);
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  background: var(--bg-soft);
  font-size: 12px;
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: var(--text-faint);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--warm);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(175,136,120,0.1);
}

.auth-form button {
  min-height: 50px;
  margin-top: 3px;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(23,29,62,0.14);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.auth-form button:not(:disabled):hover {
  transform: translateY(-2px);
  background: var(--navy-soft);
}

.auth-form button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.auth-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.password-hint {
  margin-top: -5px;
  color: var(--text-faint);
  font-size: 11px;
}

.form-error,
.form-success {
  padding: 10px 12px;
  border-radius: 9px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.form-error {
  color: var(--danger);
  background: rgba(184,77,85,0.07);
}

.form-success {
  color: var(--success);
  background: rgba(46,118,95,0.08);
}

.field-feedback:empty {
  display: none;
}

.auth-links {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-faint);
  font-size: 11px;
}

.auth-links > a,
.auth-links span a {
  color: var(--warm-dark);
  font-weight: 700;
}

.auth-links-centered {
  justify-content: center;
}

.auth-link-btn {
  padding: 0;
  border: none;
  background: none;
  color: var(--warm-dark);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
}

.auth-link-btn:disabled {
  color: var(--text-faint);
  cursor: not-allowed;
  text-decoration: none;
}

.auth-wrapper-compact {
  padding-block: 48px;
}

.auth-card-standalone {
  width: min(520px, 100%);
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card-wide {
  width: min(650px, 100%);
}

.auth-back {
  width: fit-content;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.access-wrapper {
  min-height: calc(100vh - 83px);
  padding: 60px 24px;
  display: grid;
  place-items: center;
}

.access-card {
  position: relative;
  width: min(720px, 100%);
  padding: 68px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.access-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -150px;
  top: -150px;
  border: 1px solid var(--warm-soft);
  border-radius: 50%;
}

.access-card > * {
  position: relative;
  z-index: 1;
}

.access-icon,
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 32px rgba(23,29,62,0.16);
}

.access-card h1 {
  font-size: clamp(42px, 5vw, 60px);
}

.access-card > p {
  max-width: 570px;
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: 13px;
}

.access-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.access-note {
  margin-top: 24px;
  color: var(--text-faint);
  font-size: 12px;
}

.access-note i {
  margin-right: 5px;
  color: var(--warm-dark);
}

.success-page {
  min-height: calc(100vh - 83px);
  padding: 48px 24px;
  display: grid;
  place-items: center;
}

.success-card {
  width: min(520px, 100%);
  padding: 54px 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-icon {
  background: var(--success);
}

.success-card h1 {
  font-size: 48px;
}

.success-card p {
  margin: 14px 0 26px;
  color: var(--text-soft);
  font-size: 13px;
}

.success-card small {
  margin-top: 16px;
  display: block;
  color: var(--text-faint);
  font-size: 11px;
}

@media (max-width: 760px) {
  .auth-wrapper { padding: 30px 16px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { min-height: 330px; padding: 42px 34px; }
  .auth-assurance, .auth-steps { margin-top: 50px; }
  .auth-card { padding: 42px 34px; }
}

@media (max-width: 480px) {
  .auth-aside { min-height: 290px; padding: 34px 24px; }
  .auth-aside h2 { font-size: 36px; }
  .auth-aside-mark { margin-bottom: 26px; }
  .auth-card { padding: 36px 22px; }
  .auth-form-row { grid-template-columns: 1fr; }
  .auth-links { flex-direction: column; text-align: center; }
  .access-card { padding: 48px 24px; }
  .access-actions { flex-direction: column; }
  .access-actions .btn { width: 100%; }
  .success-card { padding: 46px 24px; }
}
