/* The approved Epic Auth composition, scoped to the actual account forms. */
.auth-page {
  --epic-text-main: #f5f7fc;
  --epic-text-sub: #a2aec2;
  --epic-accent-primary: #7358f0;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 15% 20%, #7358f025, transparent 52%),
    radial-gradient(ellipse at 85% 85%, #52d9d314, transparent 48%), #07090e;
  color: var(--epic-text-main);
}
.auth-page .auth-card.epic-auth-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(1080px, 100%);
  max-width: 1080px;
  min-height: 580px;
  flex: none;
  margin: 0;
  border: 1px solid #806bff45;
  border-radius: 28px;
  background: #0c0f18e8;
  overflow: hidden;
  box-shadow: 0 30px 80px #0008;
  animation: none;
  backdrop-filter: blur(20px);
}
.auth-page .auth-header.epic-hero-side {
  display: flex;
  min-width: 0;
  width: auto;
  min-height: 0;
  padding: 44px 40px;
  border: 0;
  border-right: 1px solid #ffffff12;
  background:
    radial-gradient(ellipse at 10% 0%, #806bff24, transparent 62%),
    radial-gradient(ellipse at 85% 95%, #52d9d31a, transparent 60%);
  text-align: left;
  align-items: stretch;
  justify-content: stretch;
}
.auth-page .epic-hero-top {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
}
.auth-page .auth-header-glow,
.auth-page .auth-logo-orb {
  display: none;
}
.auth-page .epic-badge {
  margin: 0;
  padding: 6px 14px;
  min-height: 0;
  border-radius: 99px;
  border: 1px solid #806bff66;
  background: #7358f02b;
  color: #c8baff;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.auth-page .epic-chat-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 20px;
  border: 1px solid #806bff66;
  background: linear-gradient(135deg, #7358f044, #52d9d326);
  box-shadow: inset 0 1px #ffffff33;
}
.auth-page .auth-logo-mark {
  color: #fff;
}
.auth-page .epic-chat-logo svg {
  width: 32px;
  height: 32px;
}
.auth-page .auth-header .epic-hero-title {
  margin: 8px 0 0;
  font-size: clamp(38px, 4.2vw, 52px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  text-align: left;
}
.epic-hero-title span {
  background: linear-gradient(135deg, #fff 35%, #bcaeff 78%, #52d9d3);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.auth-page .auth-header p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--epic-text-sub);
  margin: 0;
  text-align: left;
}
.auth-page .epic-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
  justify-content: flex-start;
}
.auth-page .epic-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid #ffffff1a;
  background: #ffffff0c;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}
.epic-pill-dot {
  width: 6px;
  height: 6px;
  background: #52d9d3;
  border-radius: 50%;
  box-shadow: 0 0 6px #52d9d3;
}
.auth-page .epic-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid #ffffff14;
}
.auth-page .epic-metric-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  min-width: 0;
}
.auth-page .epic-metric-val {
  font-size: 24px;
  font-weight: 800;
  color: #f5f7fc;
}
.auth-page .epic-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #99a8bd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-page .epic-form-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  background: #0b0e16a8;
}
.auth-page .epic-tabs-bar {
  display: flex;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid #ffffff14;
  background: transparent;
}
.auth-page .epic-tab-btn {
  position: relative;
  flex: 1;
  padding: 18px 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #99a8bd;
  font-size: 14px;
  font-weight: 700;
  min-height: 56px;
}
.auth-page .epic-tab-btn.active {
  background: none;
  color: #fff;
  box-shadow: none;
}
.auth-page .epic-tab-btn.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #7358f0, #52d9d3);
}
.auth-page .epic-form-body {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.auth-page .auth-form-intro {
  display: block;
  margin: 0 0 26px;
}
.auth-page .epic-form-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  color: #f5f7fc;
  margin: 0 0 10px;
}
.auth-page .epic-form-subtitle {
  color: #99a8bd;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
.auth-page .epic-input-group {
  margin: 0 0 22px;
}
.auth-page .epic-input-group label {
  display: block;
  margin: 0 0 8px;
  color: #a2aec2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-page .epic-input-box {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-page .epic-input-box > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #7b8ba5;
  pointer-events: none;
}
.auth-page .epic-input-box input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 15px 46px;
  background: #ffffff0a;
  border: 1px solid #ffffff24;
  border-radius: 14px;
  color: #f5f7fc;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.auth-page .epic-input-box input:focus {
  border-color: #9a86ff;
  box-shadow: 0 0 0 3px #7358f033;
}
.auth-page .epic-input-box input::placeholder {
  color: #98a5bc;
}
.auth-page .epic-submit-btn {
  width: 100%;
  min-height: 54px;
  padding: 15px 24px;
  margin: 6px 0 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #7048e8, #845ef7);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 12px 30px #7358f055;
  cursor: pointer;
}
.auth-page .epic-submit-btn:hover {
  filter: brightness(1.1);
}
.auth-page .epic-submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-page .epic-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 40px 28px;
  margin: 0;
  border-top: 1px solid #ffffff14;
  background: #0002;
}
.auth-page .epic-card-footer a {
  color: #b4a1ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.auth-page .epic-card-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-page :is(button, a):focus-visible {
  outline: 2px solid #52d9d3;
  outline-offset: 4px;
}
.theme-light .auth-page {
  --epic-text-main: #171b2b;
  --epic-text-sub: #4f5a70;
  background:
    radial-gradient(ellipse at 15% 20%, #7358f022, transparent 52%), #f0f3f8;
  color: #171b2b;
}
.theme-light .auth-page .epic-auth-card {
  background: #fffffff0;
}
.theme-light .auth-page .epic-form-side {
  background: #fff8;
}
.theme-light
  .auth-page
  :is(.epic-form-title, .epic-metric-val, .epic-tab-btn.active) {
  color: #171b2b;
}
.theme-light .auth-page .epic-input-box input {
  color: #171b2b;
  border-color: #171b2b44;
  background: #171b2b06;
}
.theme-light .auth-page .epic-pill-item {
  color: #334155;
  border-color: #171b2b22;
}
.theme-light .epic-hero-title span {
  background-image: linear-gradient(135deg, #171b2b, #7358f0);
}
@media (max-width: 800px) {
  .auth-page {
    justify-content: flex-start;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .auth-page .auth-card.epic-auth-card {
    grid-template-columns: 1fr;
    min-height: 0;
    max-width: 520px;
  }
  .auth-page .auth-header.epic-hero-side {
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid #ffffff14;
  }
  .auth-page :is(.epic-metrics-strip, .epic-feature-pills, .epic-badge, .epic-hero-top > p) {
    display: none;
  }
  .auth-page .epic-hero-top {
    flex-flow: row wrap;
    align-items: center;
    gap: 12px;
  }
  .auth-page .epic-chat-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }
  .auth-page .auth-header .epic-hero-title {
    margin: 0;
    font-size: clamp(24px, 6vw, 36px);
  }
  .auth-page .epic-form-body {
    padding: 20px;
  }
  .auth-page .epic-card-footer {
    padding: 16px 20px;
  }
  .auth-page .epic-input-box input {
    font-size: 16px;
  }
}

.auth-page .auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-page .epic-pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #a2aec2;
  cursor: pointer;
}
