/* rb-aux.css — pages-aux component styles for riftbeacon.com
 * Covers: team, contact, 404, login (Pattern A subfolder), dashboard
 * All classes from design-spec.class_names.subpage_skeleton
 */

/* ----------------------------------------------------------------
   PAGE HERO (team / contact / 404 eyebrow sections)
---------------------------------------------------------------- */
.rb-page-hero {
  background: #0a0a0f;
  padding: 80px 24px 64px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.rb-page-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.rb-page-hero__title {
  font-family: 'Space Mono', monospace;
  font-size: 40px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 16px;
  line-height: 1.2;
}

.rb-page-hero__lede {
  font-size: 18px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
}

/* ----------------------------------------------------------------
   TEAM GRID
---------------------------------------------------------------- */
.rb-team-grid {
  background: #0d0d18;
  padding: 80px 24px;
}

.rb-team-grid__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.rb-team-grid__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 900px) {
  .rb-team-grid__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .rb-team-grid__list {
    grid-template-columns: 1fr;
  }
}

.rb-team-card {
  background: #1a1a2e;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rb-team-card__photo-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d0d18;
}

.rb-team-card__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rb-team-card__name {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 20px 20px 4px;
}

.rb-team-card__title {
  font-size: 13px;
  font-weight: 500;
  color: #7c3aed;
  margin: 0 20px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rb-team-card__bio {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 20px 20px;
  flex: 1;
}

/* ----------------------------------------------------------------
   CONTACT PAGE
---------------------------------------------------------------- */
.rb-contact {
  background: #0d0d18;
  padding: 80px 24px;
}

.rb-contact__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.rb-contact__grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .rb-contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.rb-contact__form-title {
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 8px;
}

.rb-contact__form-desc {
  font-size: 15px;
  color: #94a3b8;
  margin: 0 0 28px;
}

/* Form elements */
.rb-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.rb-form__label {
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.rb-form__input,
.rb-form__textarea,
.rb-form__select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #f1f5f9;
  background: #12121e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, outline 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.rb-form__input:focus,
.rb-form__textarea:focus,
.rb-form__select:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  border-color: #7c3aed;
}

.rb-form__input::placeholder,
.rb-form__textarea::placeholder {
  color: #475569;
}

.rb-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.rb-form__submit {
  width: 100%;
  padding: 14px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: filter 0.2s;
}

.rb-form__submit:hover {
  filter: brightness(1.12);
}

.rb-form__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(21, 128, 61, 0.15);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.2);
  border-radius: 8px;
  font-size: 14px;
}

/* Info column */
.rb-contact__info-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.rb-contact__info-block {
  background: #1a1a2e;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 12px;
  padding: 24px;
}

.rb-contact__info-heading {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.rb-contact__info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.rb-contact__info-item:last-child {
  margin-bottom: 0;
}

.rb-contact__info-item .fa-solid {
  color: #7c3aed;
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

.rb-contact__info-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.rb-contact__info-item a {
  font-size: 15px;
  color: #f1f5f9;
  text-decoration: none;
}

.rb-contact__info-item a:hover {
  color: #7c3aed;
}

.rb-contact__address {
  font-style: normal;
  font-size: 15px;
  color: #f1f5f9;
  line-height: 1.6;
}

.rb-contact__info-note {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   404 PAGE
---------------------------------------------------------------- */
.rb-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: #0a0a0f;
  padding: 80px 24px;
}

.rb-404__inner {
  text-align: center;
  max-width: 560px;
}

.rb-404__code {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 96px;
  font-weight: 700;
  color: rgba(124, 58, 237, 0.3);
  line-height: 1;
  margin-bottom: 16px;
}

.rb-404__title {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 16px;
}

.rb-404__body {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 32px;
}

.rb-404__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.rb-404__cta {
  display: inline-block;
  padding: 12px 24px;
  background: #7c3aed;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: filter 0.2s;
}

.rb-404__cta:hover {
  filter: brightness(1.12);
}

.rb-404__cta--ghost {
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #a78bfa;
}

.rb-404__cta--ghost:hover {
  border-color: #7c3aed;
  color: #f1f5f9;
}

/* ----------------------------------------------------------------
   AUTH PAGES — Pattern A subfolder (NO nav/footer/cookie)
---------------------------------------------------------------- */
.auth-body {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
    #070d1a;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.auth-split {
  display: flex;
  min-height: 100vh;
}

.auth-form-side {
  flex: 0 0 480px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  overflow-y: auto;
}

.auth-form-side--wide {
  flex: 0 0 580px;
  max-width: 580px;
}

.auth-visual-side {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0d0d18;
}

.auth-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.45;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.auth-metrics {
  background: rgba(7, 13, 26, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  padding: 28px;
}

.auth-metrics__heading {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 20px;
}

.auth-metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.auth-metric__value {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #7c3aed;
  line-height: 1.1;
  margin-bottom: 6px;
}

.auth-metric__label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .auth-split {
    flex-direction: column;
  }

  .auth-form-side,
  .auth-form-side--wide {
    flex: none;
    max-width: 100%;
    padding: 32px 24px;
  }

  .auth-visual-side {
    display: none;
  }
}

/* Auth logo */
.auth-logo-link {
  display: inline-block;
  margin-bottom: 40px;
  text-decoration: none;
}

.auth-logo {
  display: block;
}

/* Auth card */
.auth-card {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-card--wide {
  padding: 36px 32px;
}

.auth-card--centered {
  text-align: center;
}

.auth-card__title {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 8px;
}

.auth-card__sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 24px;
  line-height: 1.5;
}

.auth-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  margin: 0 0 20px;
  font-size: 22px;
  color: #7c3aed;
}

.auth-card__icon-wrap--success {
  background: rgba(21, 128, 61, 0.15);
  color: #86efac;
}

.auth-card--centered .auth-card__icon-wrap {
  margin: 0 auto 20px;
}

/* Auth form elements */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: #f1f5f9;
  background: #12121e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s, outline 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.auth-input:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  border-color: #7c3aed;
}

.auth-input::placeholder {
  color: #475569;
}

.auth-input--select {
  cursor: pointer;
}

.auth-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .auth-grid-2col {
    grid-template-columns: 1fr;
  }
}

.auth-check-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
}

.auth-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0;
}

.auth-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: filter 0.2s;
  text-align: center;
  text-decoration: none;
  margin-top: 4px;
}

.auth-btn-primary:hover {
  filter: brightness(1.12);
}

.auth-btn-primary--link {
  margin-top: 8px;
  margin-bottom: 16px;
}

.auth-link {
  font-size: 13px;
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-link:hover {
  text-decoration: underline;
  filter: brightness(1.12);
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

.auth-terms {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 4px 0 0;
}

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

.auth-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-message--error {
  background: rgba(185, 28, 28, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.2);
}

.auth-message--success {
  background: rgba(21, 128, 61, 0.15);
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.2);
}

.auth-message--info {
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

/* ----------------------------------------------------------------
   DASHBOARD
---------------------------------------------------------------- */
.auth-body--dashboard {
  background: #080c14;
}

.dash-layout {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  flex: 0 0 220px;
  background: #0d1020;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.dash-sidebar__logo {
  display: block;
  padding: 0 20px 28px;
  text-decoration: none;
}

.dash-sidebar__nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dash-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.dash-sidebar__link:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

.dash-sidebar__link--active {
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
  border-right: 2px solid #7c3aed;
}

.dash-sidebar__footer {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
}

.dash-sidebar__link--logout {
  color: #64748b;
}

.dash-main {
  flex: 1;
  overflow: auto;
  padding: 32px 40px;
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.dash-header__title {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 6px;
}

.dash-header__sub {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.dash-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dash-badge--high {
  background: rgba(185, 28, 28, 0.2);
  color: #fca5a5;
}

.dash-badge--med {
  background: rgba(202, 138, 4, 0.2);
  color: #fde68a;
}

.dash-badge--low {
  background: rgba(21, 128, 61, 0.15);
  color: #86efac;
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

@media (max-width: 1100px) {
  .dash-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dash-stat-card {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dash-stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  font-size: 16px;
  flex-shrink: 0;
}

.dash-stat-card__icon--warn {
  background: rgba(202, 138, 4, 0.15);
  color: #ca8a04;
}

.dash-stat-card__icon--success {
  background: rgba(21, 128, 61, 0.15);
  color: #86efac;
}

.dash-stat-card__icon--accent {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
}

.dash-stat-card__value {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.1;
}

.dash-stat-card__label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
}

.dash-section {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 24px;
}

.dash-section__title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 20px;
}

.dash-table-wrap {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.dash-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-table td {
  padding: 12px 14px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-table__mono {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: #94a3b8;
}

.dash-table__note {
  font-size: 12px;
  color: #64748b;
  margin: 16px 0 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .dash-sidebar {
    display: none;
  }

  .dash-main {
    padding: 24px 20px;
  }
}
