/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@14.2.29_@playwright+test@1.49.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/.pnpm/next@14.2.29_@playwright+test@1.49.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/auth/auth.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Auth routes — layout shells only. Controls use shared components (Button, FormistInput, FormistCard) with chamfer clip-path per DesignSystem. */

.auth-admin-root {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  background: #0c0c0c;
  color: #fff;
}

.auth-admin-left {
  position: relative;
  width: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background-color: #0c0c0c;
  background-image: linear-gradient(rgba(213, 215, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 215, 218, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-admin-left::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 49.5%,
    rgba(74, 111, 165, 0.08) 49.5%,
    rgba(74, 111, 165, 0.08) 50.5%,
    transparent 50.5%
  );
}

.auth-admin-brand {
  position: relative;
  z-index: 1;
  text-align: center;
}

.auth-admin-right {
  width: 45%;
  background: #ffffff;
  color: #0c0c0c;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.auth-admin-mobile-topbar {
  display: none;
}

.auth-admin-home-link {
  font-size: 12px;
  color: #9a9a96;
  text-decoration: none;
  font-family: var(--font-heading);
}

.auth-admin-home-link:hover {
  text-decoration: underline;
}

.auth-admin-panel {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0 48px;
}

.auth-admin-footer {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9a9a96;
}

.auth-slide-in {
  animation: authSlideIn 200ms ease-out;
}

@keyframes authSlideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.auth-fade-up {
  animation: authFadeUp 220ms ease-out;
}

@keyframes authFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0c0c0c;
  margin-bottom: 6px;
}

.auth-error {
  font-size: 12px;
  color: #d95f52;
  margin-top: 6px;
  transition: opacity 150ms ease;
}

/* OTP cells — xs chamfer (4px), not pill rounding */
.auth-otp-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.auth-otp-cell {
  width: 44px;
  height: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 18px;
  border: 2px solid #d5d7da;
  border-radius: 0;
  -webkit-clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
          clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  outline: none;
  box-sizing: border-box;
  background: #fff;
  color: #0c0c0c;
}

.auth-otp-cell:focus {
  border-color: #4a6fa5;
  box-shadow: 0 0 0 1px #4a6fa5;
}

/* Portal shell */
.auth-portal-root {
  min-height: 100vh;
  background: #f5f5f4;
  background-image: radial-gradient(#d5d7da 1px, transparent 1px);
  background-size: 24px 24px;
  padding: 24px;
}

.auth-portal-card {
  max-width: 28rem;
  width: 100%;
  margin: clamp(48px, 12vh, 15vh) auto 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .auth-admin-root {
    flex-direction: column;
  }
  .auth-admin-left,
  .auth-admin-right {
    width: 100%;
    min-height: auto;
  }
  .auth-admin-left {
    min-height: 36vh;
    padding: 32px 24px;
  }
  .auth-admin-panel {
    padding: 48px 24px 96px;
  }
}

@media (max-width: 640px) {
  .auth-admin-right {
    min-height: 100vh;
  }

  .auth-admin-right {
    background: #f5f5f4;
  }

  /* Mobile: single-column shell (hide hero, show topbar) */
  .auth-admin-left {
    display: none;
  }

  .auth-admin-mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e6;
  }

  .auth-admin-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .auth-admin-mobile-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .auth-admin-mobile-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 12px;
    line-height: 1.1;
    color: #0c0c0c;
  }

  .auth-admin-mobile-brand-subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4a6fa5;
    line-height: 1.1;
  }

  /* (Legacy) left hero styles removed because hero is hidden */

  .auth-admin-panel {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(16px, 4vh, 28px) 16px clamp(16px, 4vh, 28px);
  }

  .auth-admin-panel > form {
    background: #ffffff;
    border: 1px solid #e8e8e6;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    padding: clamp(16px, 4.2vw, 22px);
    box-sizing: border-box;
  }

  .auth-admin-panel > form,
  .auth-admin-panel > form > *:first-child {
    border-radius: 16px;
  }

  .auth-admin-footer {
    position: static;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .auth-otp-row {
    gap: 6px;
  }

  .auth-otp-cell {
    width: clamp(36px, 13.5vw, 44px);
    height: 46px;
    font-size: 16px;
  }

  .auth-portal-root {
    padding: 16px;
  }

  .auth-portal-card {
    max-width: 100%;
    margin: 0 auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 640px) {
  .auth-portal-root {
    display: flex;
    align-items: stretch;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .auth-portal-card {
    margin: auto;
  }
}

