/**
 * ====================================================================
 * Rapid Extreme - Sign In / Authentication Stylesheet
 * Matching Figma Nodes:
 * - 48:11041 (Sign-In Empty Page)
 * - 48:12287 (Sign-In Focused State)
 * - 48:12446 (Sign-In Filled State)
 * ====================================================================
 */

:root {
  --auth-bg-page: #101310;
  --auth-bg-hero: #0a0c0a;
  --auth-bg-form: #151916;
  --auth-bg-input: #101310;
  --auth-border-subtle: #262b27;
  --auth-border-input: #2e332f;
  --auth-border-focus: #c6ff00;
  --auth-accent-lime: #c6ff00;
  --auth-accent-lime-hover: #d4ff33;
  --auth-accent-cyan: #29dce8;
  --auth-text-white: #f4f3ee;
  --auth-text-dim: #a3a8a2;
  --auth-text-placeholder: #757575;
  --auth-text-label: #a3a8a2;
  --auth-text-checkbox: #c9ccc6;
  --auth-font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --auth-font-display: 'Barlow Condensed', 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ====================================================================
   Page Layout
   ==================================================================== */
body.auth-page {
  background-color: var(--auth-bg-page);
  color: var(--auth-text-white);
  font-family: var(--auth-font-body);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ====================================================================
   Header (Node 48:11043)
   ==================================================================== */
.auth-header {
  height: 96px;
  background-color: var(--auth-bg-page);
  border-bottom: 1px solid var(--auth-border-subtle);
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
}

.auth-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-header__brand:hover {
  opacity: 0.9;
}

.auth-header__logo {
  height: 40px;
  width: auto;
  display: block;
}

.auth-header__nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.auth-header__nav-list {
  display: flex;
  align-items: center;
  gap: 44px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.auth-header__nav-link {
  font-family: var(--auth-font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--auth-text-white);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

.auth-header__nav-link:hover,
.auth-header__nav-link:focus-visible {
  color: var(--auth-accent-lime);
}

.auth-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 290px;
}

.auth-header__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--auth-font-body);
  font-weight: 400;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 6px 10px;
  border-radius: 4px;
}

.auth-header__back-link:hover,
.auth-header__back-link:focus-visible {
  color: var(--auth-accent-lime);
}

.auth-header__back-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.auth-header__back-link:hover .auth-header__back-icon {
  transform: translateX(-3px);
}

/* ====================================================================
   Main Split Layout (Node 48:11128)
   ==================================================================== */
.auth-main {
  flex: 1 0 auto;
  display: flex;
  width: 100%;
  position: relative;
  min-height: calc(100vh - 96px);
}

/* --------------------------------------------------------------------
   Left Hero Visual Column (Node 48:11129)
   -------------------------------------------------------------------- */
.auth-hero {
  flex: 1 1 0%;
  background-color: var(--auth-bg-hero);
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 64px 64px 64px;
}

.auth-hero__bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.auth-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

.auth-hero:hover .auth-hero__bg-img {
  transform: scale(1.06);
}

.auth-hero__overlay-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(10, 12, 10, 0.1) 0%, rgba(10, 12, 10, 0.6) 80%);
  z-index: 2;
  pointer-events: none;
}

.auth-hero__overlay-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 85%;
  background: linear-gradient(180deg, rgba(10, 12, 10, 0) 25%, rgba(10, 12, 10, 0.7) 65%, #0a0c0a 96%);
  z-index: 3;
  pointer-events: none;
}

/* Badge (Node 48:11133) */
.auth-hero__badge {
  position: relative;
  z-index: 5;
  align-self: flex-start;
  background-color: var(--auth-bg-page);
  border: 1px solid rgba(198, 255, 0, 0.25);
  padding: 8px 12px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-hero__badge-text {
  font-family: var(--auth-font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--auth-accent-lime);
  margin: 0;
  line-height: 1;
}

/* Bottom Content Container (Node 48:11135) */
.auth-hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: auto;
  max-width: 672px;
}

/* Heading 1 (Node 48:11136) */
.auth-hero__heading {
  font-family: var(--auth-font-display);
  font-weight: 800;
  font-size: 96px;
  line-height: 0.92;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  margin: 0;
}

.auth-hero__heading-white {
  display: block;
  color: var(--auth-text-white);
}

.auth-hero__heading-lime {
  display: block;
  color: var(--auth-accent-lime);
  text-shadow: 0 0 25px rgba(198, 255, 0, 0.25);
}

/* Features Grid (Node 48:11138) */
.auth-hero__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
  row-gap: 12px;
  max-width: 640px;
  width: 100%;
}

.auth-hero__feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-hero__feature-marker {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 1px;
}

.auth-hero__feature-marker--lime {
  background-color: var(--auth-accent-lime);
  box-shadow: 0 0 8px rgba(198, 255, 0, 0.4);
}

.auth-hero__feature-marker--cyan {
  background-color: var(--auth-accent-cyan);
  box-shadow: 0 0 8px rgba(41, 220, 232, 0.4);
}

.auth-hero__feature-label {
  font-family: var(--auth-font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--auth-text-white);
  margin: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------
   Right Sign-In Form Column (Node 48:11151)
   -------------------------------------------------------------------- */
.auth-panel {
  width: 640px;
  flex-shrink: 0;
  background-color: var(--auth-bg-form);
  border-left: 1px solid var(--auth-border-subtle);
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.auth-panel__main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Tab Switcher (Node 48:11152) */
.auth-tabs {
  display: flex;
  width: 100%;
  border: 1px solid var(--auth-border-input);
  background-color: var(--auth-bg-page);
  padding: 1px;
  border-radius: 2px;
}

.auth-tab {
  flex: 1;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--auth-font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  border: none;
  background: transparent;
  color: var(--auth-text-white);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.auth-tab--active {
  background-color: var(--auth-accent-lime);
  color: #101310;
  font-weight: 800;
}

.auth-tab:not(.auth-tab--active):hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* Titles & Header Area (Node 48:11158) */
.auth-panel__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.auth-panel__title {
  font-family: var(--auth-font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 0.95;
  letter-spacing: 0.22px;
  text-transform: uppercase;
  color: var(--auth-text-white);
  margin: 0;
}

.auth-panel__subtitle {
  font-family: var(--auth-font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  color: var(--auth-text-dim);
  margin: 0;
  min-height: 22px;
  transition: color 0.3s ease;
}

/* Form Styles (Node 48:11163) */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.auth-field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.auth-field__label {
  font-family: var(--auth-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--auth-text-label);
  margin: 0;
  cursor: pointer;
}

.auth-field__link {
  font-family: var(--auth-font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--auth-accent-lime);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.auth-field__link:hover,
.auth-field__link:focus-visible {
  color: var(--auth-accent-lime-hover);
  text-decoration: underline;
}

/* Input Wrapper & Inputs */
.auth-input-wrap {
  position: relative;
  width: 100%;
}

.auth-input {
  width: 100%;
  height: 52px;
  background-color: var(--auth-bg-input);
  border: 1px solid var(--auth-border-input);
  border-radius: 2px;
  padding: 0 16px;
  color: var(--auth-text-white);
  font-family: var(--auth-font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-input::placeholder {
  color: var(--auth-text-placeholder);
  opacity: 1;
}

.auth-input:hover {
  border-color: #3e443f;
}

/* Focused State (Node 48:12287) */
.auth-input:focus,
.auth-input.is-focused {
  border-color: var(--auth-border-focus);
  box-shadow: 0 0 0 1px var(--auth-border-focus), 0 0 12px rgba(198, 255, 0, 0.15);
  background-color: #0d100e;
}

/* Input Password Visibility Toggle */
.auth-input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--auth-text-dim);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  border-radius: 4px;
}

.auth-input-toggle:hover {
  color: var(--auth-accent-lime);
}

.auth-input-toggle svg {
  width: 18px;
  height: 18px;
}

/* Checkbox Row (Node 48:11179) */
.auth-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
  width: fit-content;
}

.auth-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.auth-checkbox-box {
  width: 16px;
  height: 16px;
  border: 1px solid #767676;
  border-radius: 2.5px;
  background-color: var(--auth-bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.auth-checkbox-box svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.auth-checkbox-input:checked + .auth-checkbox-box {
  background-color: var(--auth-accent-lime);
  border-color: var(--auth-accent-lime);
}

.auth-checkbox-input:checked + .auth-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.auth-checkbox-input:focus-visible + .auth-checkbox-box {
  outline: 2px solid var(--auth-accent-lime);
  outline-offset: 2px;
}

.auth-checkbox-label {
  font-family: var(--auth-font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--auth-text-checkbox);
  margin: 0;
}

/* Submit CTA (Node 48:11182) */
.auth-submit-btn {
  width: 100%;
  height: 56px;
  background-color: var(--auth-accent-lime);
  color: #101310;
  border: none;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--auth-font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(198, 255, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.auth-submit-btn:hover {
  background-color: var(--auth-accent-lime-hover);
  box-shadow: 0 6px 20px rgba(198, 255, 0, 0.35);
  transform: translateY(-1px);
}

.auth-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(198, 255, 0, 0.2);
}

.auth-submit-btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit-btn:hover .auth-submit-btn__arrow {
  transform: translateX(4px);
}

/* Alternate Link Row (Node 48:11186) */
.auth-alternate {
  text-align: center;
  font-family: var(--auth-font-body);
  font-size: 13px;
  color: var(--auth-text-dim);
  margin-top: 4px;
}

.auth-alternate__link {
  color: var(--auth-accent-lime);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.auth-alternate__link:hover,
.auth-alternate__link:focus-visible {
  color: var(--auth-accent-lime-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------
   Panel Footer (Node 48:11189)
   -------------------------------------------------------------------- */
.auth-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 36px;
  border-top: 1px solid rgba(46, 51, 47, 0.6);
  margin-top: 36px;
}

.auth-security-notice {
  font-family: var(--auth-font-body);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-security-notice__dot {
  width: 4px;
  height: 4px;
  background-color: var(--auth-accent-lime);
  border-radius: 50%;
  display: inline-block;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-footer-link {
  font-family: var(--auth-font-body);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-link:hover,
.auth-footer-link:focus-visible {
  color: var(--auth-accent-lime);
}

/* ====================================================================
   Interactive State Switcher Badge (Empty / Focused / Filled)
   Quick inspection tool matching the 3 Figma links provided by user
   ==================================================================== */
.auth-state-switcher {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  background-color: rgba(16, 19, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #2e332f;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.auth-state-switcher__label {
  font-family: var(--auth-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--auth-text-dim);
  margin-right: 4px;
}

.auth-state-btn {
  background: transparent;
  border: 1px solid #2e332f;
  color: var(--auth-text-white);
  font-family: var(--auth-font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-state-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #4a524c;
}

.auth-state-btn--active {
  background-color: var(--auth-accent-lime);
  border-color: var(--auth-accent-lime);
  color: #101310;
  font-weight: 800;
}

/* ====================================================================
   Notification Banner / Toast
   ==================================================================== */
.auth-toast {
  position: fixed;
  top: 112px;
  right: 24px;
  background-color: #1a201c;
  border-left: 3px solid var(--auth-accent-lime);
  border-radius: 4px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-toast--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.auth-toast__text {
  font-family: var(--auth-font-body);
  font-size: 13px;
  color: var(--auth-text-white);
  margin: 0;
}

/* ====================================================================
   Responsive Styles
   ==================================================================== */
@media (max-width: 1200px) {
  .auth-hero {
    padding: 32px 40px 48px 40px;
  }

  .auth-hero__heading {
    font-size: 72px;
  }

  .auth-panel {
    width: 520px;
    padding: 48px 44px;
  }
}

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

  .auth-hero {
    min-height: 480px;
    padding: 32px 24px;
  }

  .auth-hero__heading {
    font-size: 56px;
    line-height: 1;
  }

  .auth-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--auth-border-subtle);
    padding: 40px 24px;
  }

  .auth-header {
    padding: 0 24px;
  }

  .auth-header__nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .auth-header {
    height: 72px;
    padding: 0 16px;
  }

  .auth-header__logo {
    height: 32px;
  }

  .auth-hero {
    min-height: 400px;
    padding: 24px 16px;
  }

  .auth-hero__heading {
    font-size: 40px;
  }

  .auth-hero__features {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .auth-panel {
    padding: 32px 16px;
  }

  .auth-panel__title {
    font-size: 34px;
  }

  .auth-panel__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
  }

  .auth-state-switcher {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }
}
