:root {
  --dc-auth-cyan: #28e7ff;
  --dc-auth-blue: #2f72ff;
  --dc-auth-ink: #061329;
  --dc-auth-panel: rgba(8, 23, 52, .88);
  --dc-auth-line: rgba(119, 207, 255, .22);
}

.dc-auth-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dc-auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: stretch;
}

.dc-auth-panel,
.dc-auth-aside {
  border: 1px solid var(--dc-auth-line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13, 37, 80, .94), rgba(4, 13, 33, .96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .05);
}

.dc-auth-panel { padding: clamp(22px, 4vw, 44px); }
.dc-auth-aside { padding: clamp(22px, 3vw, 34px); }
.dc-auth-aside .dc-auth-mascot {
  display: block !important;
  width: min(100%, 360px) !important;
  height: auto !important;
  max-height: 540px !important;
  aspect-ratio: 2 / 3;
  object-fit: contain !important;
  object-position: center !important;
  margin: -24px auto -10px;
  filter: drop-shadow(0 28px 36px rgba(0, 198, 255, .19));
}

.dc-auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 6px; margin: 22px 0; border-radius: 16px; background: rgba(2, 11, 29, .7); }
.dc-auth-tab { min-height: 48px; border: 0; border-radius: 12px; color: #b9c9e8; background: transparent; font: inherit; font-weight: 800; cursor: pointer; }
.dc-auth-tab[aria-selected="true"] { color: #031022; background: linear-gradient(135deg, var(--dc-auth-cyan), #82f2ff); box-shadow: 0 8px 22px rgba(40, 231, 255, .22); }

.dc-auth-pane[hidden], .dc-auth-stage[hidden] { display: none !important; }
[data-member-auth] [hidden] { display: none !important; }
.dc-auth-form { display: grid; gap: 15px; }
.dc-auth-form label { display: grid; gap: 7px; color: #dce9ff; font-weight: 750; }
.dc-auth-form input { width: 100%; min-height: 52px; border: 1px solid rgba(166, 214, 255, .25); border-radius: 14px; padding: 0 15px; color: #fff; background: rgba(3, 12, 31, .78); font: inherit; }
.dc-auth-form input:focus { outline: 3px solid rgba(40, 231, 255, .25); border-color: var(--dc-auth-cyan); }
.dc-auth-form .dc-auth-terms { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; line-height: 1.45; }
.dc-auth-form .dc-auth-terms input[type="checkbox"] { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--dc-auth-cyan); }
.dc-auth-form .dc-auth-terms a { color: #8eefff; }
.dc-auth-password-wrap { position: relative; }
.dc-auth-password-wrap input { padding-right: 74px; }
.dc-password-toggle { position: absolute; right: 8px; top: 7px; min-height: 38px; border: 0; border-radius: 9px; color: #dbe9ff; background: rgba(255, 255, 255, .08); cursor: pointer; }

.dc-auth-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dc-auth-actions .dp-primary { border: 0; cursor: pointer; }
.dc-auth-link { border: 0; padding: 8px 0; color: #8eefff; background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.dc-auth-status { min-height: 48px; margin: 14px 0 0; padding: 12px 14px; border-radius: 13px; color: #bed1ed; background: rgba(1, 9, 24, .58); }
.dc-auth-status.is-ok { color: #b7ffd9; background: rgba(10, 110, 70, .24); }
.dc-auth-status.is-error { color: #ffd0d9; background: rgba(142, 30, 58, .24); }

.dc-provider-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 26px 0 18px; color: #8fa5c7; }
.dc-provider-divider::before, .dc-provider-divider::after { content: ""; height: 1px; background: var(--dc-auth-line); }
.dc-provider-grid { display: grid; gap: 10px; }
.dc-provider-button { min-height: 50px; border: 1px solid var(--dc-auth-line); border-radius: 14px; color: #eaf4ff; background: rgba(255, 255, 255, .06); font: inherit; font-weight: 800; }
.dc-provider-button[disabled] { opacity: .48; cursor: not-allowed; }
.dc-provider-note { color: #9eb0cf; font-size: .86rem; line-height: 1.55; }

.dc-password-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; padding: 0; margin: 0; list-style: none; color: #9db0d1; font-size: .86rem; }
.dc-password-rules li::before { content: "○"; margin-right: 7px; color: #7183a5; }
.dc-password-rules li.is-met { color: #baffd9; }
.dc-password-rules li.is-met::before { content: "✓"; color: #56f0a5; }

.dc-member-success { display: grid; gap: 12px; padding: 20px; border: 1px solid rgba(84, 244, 175, .28); border-radius: 18px; background: rgba(10, 100, 68, .18); }
.dc-member-id { display: inline-flex; width: fit-content; padding: 9px 13px; border-radius: 999px; color: #04191d; background: linear-gradient(135deg, #86ffcf, #6de8ff); font-weight: 900; letter-spacing: .06em; }
.dc-security-list { display: grid; gap: 13px; padding: 0; list-style: none; }
.dc-security-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; color: #c7d6ee; }
.dc-security-list li::before { content: "✓"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #05152a; background: #62f2c0; font-weight: 900; }

@media (max-width: 860px) {
  .dc-auth-shell { grid-template-columns: 1fr; }
  .dc-auth-aside { order: -1; }
  .dc-auth-aside .dc-auth-mascot { width: min(70vw, 300px); }
}

@media (max-width: 520px) {
  .dc-password-rules { grid-template-columns: 1fr; }
  .dc-auth-panel, .dc-auth-aside { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-auth-tab, .dc-provider-button, .dc-password-toggle { scroll-behavior: auto; transition: none !important; }
}
