/* ---------------------------------------------------------------------------
   layouts/auth.css - Auth shell: 2-column layout (redesign v2)
   Left: tips carousel + bulletins | Right: auth form card
   --------------------------------------------------------------------------- */

/* -- Shell: Auth (2-column grid) -- */
.shell-auth {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--f-sans);
  color: var(--tx-hi);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient backdrop */
.shell-auth__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 500px 400px at 25% 30%, var(--nova-soft), transparent 60%),
    linear-gradient(var(--grid-tint) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-tint) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
}

/* Grid layout */
.shell-auth__grid {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: stretch;
}

.shell-auth__grid--md { grid-template-columns: 1fr 480px; }
.shell-auth__grid--lg { grid-template-columns: 1fr 520px; }

/* -- Left panel -- */
.shell-auth__left {
  display: flex;
  flex-direction: column;
  padding: 36px 56px;
  position: relative;
  min-height: 0;
}

/* Brand header */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand__logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.auth-brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tx-hi);
}

.auth-brand__sep {
  width: 1px;
  height: 14px;
  background: var(--bd-edge);
  margin-left: 6px;
}

.auth-brand__support {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-lo);
  font-family: var(--f-sans);
  transition: color 120ms ease;
}
.auth-brand__support:hover { color: var(--tx-md); }

/* Left center content */
.shell-auth__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  gap: 36px;
  min-height: 0;
}

/* Tips carousel */
.tips-carousel {
  position: relative;
  height: 200px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.tips-carousel__track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: tipScroll 56s linear infinite;
}

.tips-carousel__item h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--tx-hi);
  margin: 0 0 6px;
}

.tips-carousel__item p {
  font-size: 13px;
  color: var(--tx-md);
  line-height: 1.55;
  margin: 0;
  padding-right: 8px;
}

@keyframes tipScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Bulletins */
.bulletins__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 10px;
}

.bulletins__link {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--tx-lo);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.bulletins__link:hover { color: var(--tx-md); }

.bulletins__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bulletin-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--bd-line);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color 120ms ease;
}
.bulletin-item:hover { border-color: var(--bd-edge); }

.bulletin-item__accent {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--nova), var(--live));
}

.bulletin-item__body {
  flex: 1;
  min-width: 0;
}

.bulletin-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.bulletin-item__ref {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--nova);
  font-weight: 600;
}

.bulletin-item__date {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--tx-faint);
}

.bulletin-item__title {
  font-size: 13px;
  color: var(--tx-hi);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulletin-item__arrow {
  color: var(--tx-lo);
  display: flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* -- Right panel -- */
.shell-auth__right {
  background: var(--bg-surface);
  border-left: 1px solid var(--bd-line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

/* Nova stripe at top of right panel */
.shell-auth__right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nova) 40%, var(--live) 60%, transparent);
  opacity: 0.7;
}

.shell-auth__content {
  width: 100%;
  max-width: 340px;
}

.shell-auth__grid--md .shell-auth__content { max-width: 400px; }
.shell-auth__grid--lg .shell-auth__content { max-width: 440px; }

/* -- Auth card (within right panel) -- */
.auth-card__header {
  margin-bottom: 0;
}

.auth-card__eyebrow {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nova);
}

.auth-card__title {
  font-size: 26px;
  font-weight: 600;
  color: var(--tx-hi);
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
  line-height: 1.2;
}

.auth-card__subtitle {
  font-size: 13px;
  color: var(--tx-lo);
  margin: 0;
  line-height: 1.5;
}

.auth-card__body {
  margin-top: 28px;
}

.auth-card__footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--bd-faint);
  text-align: center;
  font-size: 11px;
  color: var(--tx-lo);
}

.auth-footer__text {
  font-size: 11px;
  color: var(--tx-lo);
}

.auth-footer__link {
  color: var(--nova);
  font-weight: 500;
  transition: color 120ms ease;
}
.auth-footer__link:hover { color: var(--nova-hot); }

/* -- Global footer -- */
.shell-auth__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 17, 27, 0.6);
  border-top: 1px solid var(--bd-faint);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
}

.shell-auth__footer-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--tx-lo);
}

.shell-auth__footer-text span:first-child { color: var(--tx-faint); }
.shell-auth__footer-text span:last-child { color: var(--tx-md); font-weight: 500; }

/* -- Support modal -- */
.support-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 16px;
}
.support-overlay--open { display: grid; }

.support-modal {
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface-2);
  border: 1px solid var(--bd-line);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}

.support-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nova) 35%, var(--live) 65%, transparent);
  opacity: 0.7;
}

.support-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd-line);
}

.support-modal__head h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--tx-hi);
  letter-spacing: -0.01em;
  margin: 0;
}

.support-modal__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-modal__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-surface-3);
  border: 1px solid var(--bd-line);
  border-radius: 5px;
  text-decoration: none;
  transition: border-color 120ms ease;
}
.support-modal__item:hover { border-color: var(--bd-edge); }

.support-modal__icon {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: var(--nova-soft);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--nova);
  flex-shrink: 0;
}

.support-modal__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-lo);
}

.support-modal__value {
  font-size: 13px;
  color: var(--tx-hi);
  font-weight: 500;
}

.support-modal__foot {
  padding: 10px 18px;
  border-top: 1px solid var(--bd-line);
  background: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--tx-lo);
}

/* -- Alerts (keep existing structure) -- */
.alert {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 12px;
  margin-bottom: 14px;
}
.alert--visible { display: flex; }

.alert--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}
.alert--success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
}
.alert--info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93C5FD;
}

.alert__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* -- Shell flow (for setup pages backward compat) -- */
.shell-flow {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: var(--f-sans);
  color: var(--tx-hi);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -- Info box (MFA supported devices, etc.) -- */
.info-box {
  background: var(--bg-surface-3);
  border: 1px solid var(--bd-line);
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 18px;
}

.info-box__title {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-lo);
  margin-bottom: 10px;
}

.info-box__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--tx-hi);
}

.info-box__item-label {
  font-weight: 500;
}

.info-box__item-detail {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--tx-lo);
}

.info-box__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--nova);
}

/* -- Auth card wider variants -- */
.auth-card--md .shell-auth__grid { grid-template-columns: 1fr 480px; }
.auth-card--lg .shell-auth__grid { grid-template-columns: 1fr 520px; }

/* -- Responsive -- */
@media (max-width: 1024px) {
  .shell-auth__grid {
    grid-template-columns: 1fr;
  }
  .shell-auth__left { display: none; }
  .shell-auth__right {
    border-left: none;
    min-height: 100vh;
    padding: 40px 24px;
  }
  .shell-auth__content { max-width: 400px; }
}

@media (max-width: 480px) {
  .shell-auth__right { padding: 24px 16px; }
  .auth-card__title { font-size: 22px; }
}

/* -- Retina hairline borders -- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .shell-auth__right,
  .bulletin-item,
  .support-modal {
    border-width: 0.5px;
  }
}
