.auth-page {
  --purple: #6B35E8;
  --purple-dark: #5224B5;
  --accent: #F5B731;
  --ink: #1A103C;
  min-height: 100vh;
  overflow-x: hidden;
  background: #FAFAFF;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
}

.auth-page:before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 53, 232, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 53, 232, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
}

.auth-aurora {
  position: fixed;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
}

.auth-aurora-one {
  width: 540px;
  height: 540px;
  left: -220px;
  top: -230px;
  background: rgba(139, 92, 246, 0.25);
}

.auth-aurora-two {
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -220px;
  background: rgba(245, 183, 49, 0.18);
}

.auth-shell {
  width: min(1200px, 100%);
  min-height: 740px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
  position: relative;
  z-index: 1;
  border: 1px solid #EDE8F5;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 36px 90px -15px rgba(26, 16, 60, 0.18), 0 4px 16px rgba(26, 16, 60, 0.05);
}

/* Left Showcase Panel — Hocmate Hero Dark Gradient */
.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 46px 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 16%, rgba(107, 53, 232, 0.42), transparent 40%),
    radial-gradient(circle at 12% 92%, rgba(245, 183, 49, 0.2), transparent 38%),
    linear-gradient(160deg, #0B0518 0%, #1A0B3E 48%, #2D1566 100%);
  overflow: hidden;
}

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

.auth-showcase:before {
  width: 520px;
  height: 520px;
  right: -270px;
  top: -160px;
}

.auth-showcase:after {
  width: 370px;
  height: 370px;
  left: -220px;
  bottom: -200px;
}

.auth-brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.auth-logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(135deg, #6B35E8, #5224B5);
  border: 1px solid rgba(245, 183, 49, 0.45);
  color: #F5B731;
  box-shadow: 0 10px 28px rgba(107, 53, 232, 0.5);
}

.auth-logo-mark b {
  font-size: 20px;
}

.auth-logo-mark i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  right: -2px;
  bottom: -2px;
  background: #F5B731;
  border: 2px solid #0B0518;
}

.auth-logo strong,
.auth-logo small,
.mobile-brand strong,
.mobile-brand small {
  display: block;
}

.auth-logo strong,
.mobile-brand strong {
  font-size: 16px;
  font-weight: 800;
}

.auth-logo small,
.mobile-brand small {
  color: #F5B731;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(245, 183, 49, 0.28);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: #F3EEFF;
  font-size: 11.5px;
  font-weight: 700;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.showcase-copy {
  position: relative;
  z-index: 1;
  margin-top: 52px;
}

.showcase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #F5B731;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.showcase-kicker i {
  font-style: normal;
}

.showcase-copy h1 {
  margin: 14px 0 16px;
  color: #ffffff;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.showcase-copy h1 em {
  font-style: normal;
  color: #F5B731;
}

.showcase-copy p {
  max-width: 520px;
  color: rgba(243, 238, 255, 0.8);
  font-size: 14px;
  line-height: 1.7;
}

.pipeline-preview {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 50px rgba(11, 5, 24, 0.45);
  backdrop-filter: blur(18px);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-head small {
  color: #F5B731;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.video-source {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border-radius: 13px;
  background: rgba(11, 5, 24, 0.58);
}

.source-thumb {
  height: 48px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(135deg, #5224B5, #6B35E8);
  color: #F5B731;
  overflow: hidden;
}

.source-thumb > span {
  font-size: 20px;
  font-weight: 800;
}

.play-icon {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #F5B731;
  color: #1A103C;
  font-size: 8px;
  font-style: normal;
}

.video-source small,
.video-source strong,
.video-source span {
  display: block;
}

.video-source small,
.voice-track small {
  color: #C4B5FD;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.video-source strong {
  max-width: 280px;
  margin: 2px 0;
  color: #ffffff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-source span {
  color: rgba(243, 238, 255, 0.7);
  font-size: 11px;
}

.video-source > b {
  align-self: start;
  padding: 4px 8px;
  border-radius: 6px;
  background: #F5B731;
  color: #1A103C;
  font-size: 10px;
}

.flow-line {
  height: 22px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.flow-line span {
  position: absolute;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.16);
}

.flow-line i {
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F5B731;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(243, 238, 255, 0.65);
  background: rgba(255, 255, 255, 0.03);
}

.step span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.step small {
  font-size: 11px;
  font-weight: 700;
}

.step.done {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.1);
}

.step.active {
  color: #F5B731;
  border-color: rgba(245, 183, 49, 0.45);
  background: rgba(107, 53, 232, 0.28);
}

.step.active span {
  animation: pulse 1.8s infinite;
}

.voice-track {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.voice-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #6B35E8, #5224B5);
  color: #F5B731;
  font-size: 11px;
  font-weight: 800;
}

.voice-track strong {
  display: block;
  color: #ffffff;
  font-size: 12px;
  margin-top: 2px;
}

.waveform {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.waveform i {
  width: 2.5px;
  border-radius: 3px;
  background: #F5B731;
}

.waveform i:nth-child(1), .waveform i:nth-child(9) { height: 7px; }
.waveform i:nth-child(2), .waveform i:nth-child(7) { height: 13px; }
.waveform i:nth-child(3), .waveform i:nth-child(6) { height: 21px; }
.waveform i:nth-child(4), .waveform i:nth-child(8) { height: 10px; }
.waveform i:nth-child(5) { height: 17px; }

.showcase-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-footer div {
  display: flex;
  flex-direction: column;
}

.showcase-footer strong {
  font-size: 18px;
  font-weight: 800;
  color: #F5B731;
}

.showcase-footer span {
  color: rgba(243, 238, 255, 0.7);
  font-size: 11.5px;
}

/* Right Auth Form Panel */
.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 46px;
  background: linear-gradient(155deg, #ffffff 30%, #FAFAFF 100%);
}

.mobile-brand {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 430px;
}

.auth-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.welcome-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #F3EEFF;
  border: 1px solid rgba(107, 53, 232, 0.2);
  color: var(--purple);
  font-size: 18px;
}

.auth-heading h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1A103C;
}

.auth-heading p {
  margin-top: 4px;
  font-size: 13px;
  color: #6B6490;
}

/* 4-Tab Segmented Control */
.auth-tabs {
  min-height: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  position: relative;
  padding: 4px;
  border: 1px solid #EDE8F5;
  border-radius: 12px;
  background: #F3EEFF;
}

.auth-tabs button {
  height: 36px;
  padding: 0 6px;
  position: relative;
  z-index: 2;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #6B6490 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.auth-tabs button:hover {
  color: #1A103C !important;
}

.auth-tabs button.active {
  background: #ffffff !important;
  color: #6B35E8 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(26, 16, 60, 0.08) !important;
}

.tab-indicator {
  display: none !important;
}

.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  animation: form-in 0.25s ease;
}

.auth-card form[hidden] {
  display: none;
}

.form-title {
  margin-bottom: 2px;
}

.form-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1A103C;
}

.form-title p {
  margin-top: 4px;
  font-size: 12.5px;
  color: #6B6490;
}

.auth-card label {
  display: grid;
  gap: 6px;
  margin: 0 !important;
  color: #2D2250 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
}

.field {
  height: 44px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  border: 1px solid #D8CEFF;
  border-radius: 10px;
  background: #ffffff;
  transition: 0.18s ease;
  overflow: hidden;
}

.field:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107, 53, 232, 0.15);
}

.field > i {
  color: #6B6490;
  font-size: 14px;
  font-style: normal;
  text-align: center;
}

.field input {
  width: 100%;
  height: 42px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 10px 0 4px;
  color: #1A103C;
  font-size: 13.5px;
  font-weight: 500;
}

.field input::placeholder {
  color: #9CA3AF;
}

.field-action {
  width: 38px;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6B6490 !important;
  box-shadow: none !important;
  font-size: 13px !important;
}

.invitation {
  border-style: dashed;
  background: #FAFAFF;
}

.invitation > i {
  color: var(--purple);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.submit-button {
  height: 46px !important;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #6B35E8 0%, #5224B5 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px -4px rgba(107, 53, 232, 0.42) !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: 0.18s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -4px rgba(107, 53, 232, 0.55) !important;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.submit-button i {
  font-style: normal;
  font-size: 18px;
  color: #F5B731;
}

.submit-button.loading i {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #F5B731;
  border-radius: 50%;
  font-size: 0;
  animation: spin 0.8s linear infinite;
}

.admin-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #EDE8F5;
  border-radius: 10px;
  background: #F3EEFF;
}

.admin-note > span {
  color: var(--purple);
  font-size: 15px;
}

.admin-note p {
  margin: 0;
  color: #2D2250;
  font-size: 12px;
  line-height: 1.5;
}

.auth-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12.5px;
  font-weight: 700;
  animation: shake 0.25s ease;
}

.security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #EDE8F5;
  color: #6B6490;
}

.security-note > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #ECFDF5;
  color: #059669;
  font-size: 14px;
}

.security-note p {
  margin: 0;
}

.security-note b,
.security-note small {
  display: block;
}

.security-note b {
  color: #1A103C;
  font-size: 12px;
}

.security-note small {
  font-size: 11px;
  color: #6B6490;
}

.auth-legal {
  margin-top: 18px;
  color: #6B6490;
  font-size: 11.5px;
  text-align: center;
}

.mobile-brand {
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.mobile-brand .auth-logo-mark {
  width: 38px;
  height: 38px;
}

.mobile-brand strong {
  color: #1A103C;
}

@keyframes form-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 5px rgba(245, 183, 49, 0.22); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@media (max-width: 980px) {
  .auth-page { padding: 18px; }
  .auth-shell { grid-template-columns: minmax(0, 1fr) 400px; }
  .auth-showcase { padding: 32px; }
  .showcase-copy { margin-top: 44px; }
  .showcase-copy h1 { font-size: 38px; }
  .auth-panel { padding: 36px 28px; }
  .live-pill { display: none; }
}

@media (max-width: 780px) {
  .auth-page { display: block; padding: 0; background: #ffffff; }
  .auth-page:before { display: none; }
  .auth-shell { display: block; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .auth-showcase { display: none; }
  .auth-panel { min-height: 100vh; justify-content: flex-start; padding: 32px 20px; }
  .mobile-brand { display: flex; align-self: flex-start; }
  .auth-card { max-width: 460px; margin: auto; }
  .auth-heading { margin-top: 10px; }
}

@media (max-width: 440px) {
  .auth-panel { padding: 24px 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .auth-tabs button { font-size: 11px !important; }
}
