@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #17222c;
}

body.portal-main,
main.portal-main {
  overflow-x: clip;
}

:root {
  --motion-ease-primary: cubic-bezier(0.22, 0.68, 0, 1);
  --motion-ease-hover: cubic-bezier(0.19, 1, 0.22, 1);
  --motion-duration-press: 0.1s;
  --motion-duration-hover: 0.4s;
  --motion-duration-reveal: 0.65s;
}

.app-wrapper,
.app-content,
main,
#app-root {
  min-height: 100%;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
}

.app-shell__main {
  flex: 1 1 auto;
}

.app-shell__footer {
  flex-shrink: 0;
  margin-top: auto;
}

.featured-apps-section {
  margin-top: 2.5rem;
}

.help-support-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.help-guide-steps {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.portal-main {
  min-height: 100vh;
  background: #f5f5f5;
}

.auth-page .portal-main {
  display: grid;
  place-items: center;
  padding: 42px 16px;
  background:
    radial-gradient(circle at 18% 14%, rgba(203, 173, 105, 0.2), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(35, 48, 61, 0.14), transparent 38%),
    #f5f5f5;
}

.auth-card {
  width: min(100%, 460px);
  margin: 0;
  padding: 28px 24px;
  border: 1px solid rgba(174, 184, 196, 0.56);
  border-radius: 24px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.22) 100%),
    rgba(226, 231, 236, 0.74);
  box-shadow:
    0 24px 65px rgba(12, 22, 33, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.auth-card h1 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: #17222c;
  letter-spacing: -0.02em;
}

.auth-card .field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card label {
  color: #17222c;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-card input,
.auth-card select {
  padding: 11px 12px;
  border: 1px solid rgba(23, 34, 44, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  color: #17222c;
}

.auth-card input:focus,
.auth-card select:focus {
  outline: 2px solid rgba(203, 173, 105, 0.35);
  border-color: #cbad69;
}

.auth-card .btn-primary {
  background: #17222c;
  color: #f5f5f5;
  border: 1px solid rgba(23, 34, 44, 0.2);
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

.auth-card .btn-primary:hover {
  background: #23303d;
}

.auth-card .auth-links {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.auth-card .auth-links a {
  color: #23303d;
  text-decoration: none;
}

.auth-card .auth-links a:hover {
  color: #17222c;
  text-decoration: underline;
}

.auth-card .error {
  color: #8b1e2d;
  background: rgba(255, 235, 238, 0.9);
  border: 1px solid rgba(139, 30, 45, 0.25);
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.auth-card .error ul {
  margin: 0;
  padding-left: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-card--sohub {
  width: min(100%, 760px);
  border-radius: 24px;
  background: #c7cdd3;
  border: 1px solid rgba(23, 34, 44, 0.08);
  box-shadow: 0 24px 65px rgba(12, 22, 33, 0.1);
  padding: clamp(24px, 4vw, 42px);
  margin-top: 24px;
  transition: transform var(--motion-duration-hover) var(--motion-ease-primary),
    box-shadow var(--motion-duration-hover) var(--motion-ease-primary);
}

.auth-card__eyebrow {
  margin: 0;
  text-align: center;
  color: rgba(23, 34, 44, 0.4);
  font-size: 1.75rem;
  line-height: 1;
}

.auth-card__title {
  margin: 8px 0 28px;
  text-align: center;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.auth-card__form {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.auth-step-shell {
  min-height: 280px;
}

.auth-step {
  display: grid;
  gap: 0;
}

.auth-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 620px;
  margin: 0 auto 14px;
}

.auth-stepper span {
  min-height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 34, 44, 0.08);
  color: rgba(23, 34, 44, 0.65);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-stepper span.is-active {
  background: #17222c;
  color: #f5f5f5;
}

.auth-card__field {
  margin-bottom: 12px;
}

.auth-card--sohub .auth-card__field input,
.auth-card--sohub .auth-card__field [data-slot="input"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(23, 34, 44, 0.08);
  background: #b4bac0;
  color: #17222c;
  padding: 0 16px;
  font-size: 1.05rem;
}

.auth-card--sohub .auth-card__field [data-slot="input-wrapper"] {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(23, 34, 44, 0.08);
  background: #b4bac0;
  transition: border-color var(--motion-duration-hover) var(--motion-ease-primary),
    background var(--motion-duration-hover) var(--motion-ease-primary),
    box-shadow var(--motion-duration-hover) var(--motion-ease-primary);
}

.auth-card--sohub .auth-card__field [data-slot="trigger"] {
  min-height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(23, 34, 44, 0.08);
  background: #b4bac0;
  transition: border-color var(--motion-duration-hover) var(--motion-ease-primary),
    background var(--motion-duration-hover) var(--motion-ease-primary),
    box-shadow var(--motion-duration-hover) var(--motion-ease-primary);
}

.auth-card--sohub .auth-card__field [data-slot="trigger"][data-focus="true"] {
  border-color: rgba(203, 173, 105, 0.95);
  box-shadow: 0 0 0 3px rgba(203, 173, 105, 0.2);
}

.auth-card--sohub .auth-card__field [data-slot="input-wrapper"][data-focus="true"] {
  border-color: rgba(203, 173, 105, 0.95);
  box-shadow: 0 0 0 3px rgba(203, 173, 105, 0.2);
}

.auth-card--sohub .auth-card__field input::placeholder,
.auth-card--sohub .auth-card__field [data-slot="input"]::placeholder {
  color: rgba(23, 34, 44, 0.75);
}

.auth-card__remember {
  margin: 10px 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17222c;
}

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

@media (max-width: 480px) {
  .auth-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-pill-btn {
    width: 100%;
    justify-content: center;
  }
}

.auth-pill-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  transition: transform var(--motion-duration-hover) var(--motion-ease-hover),
    filter var(--motion-duration-hover) var(--motion-ease-primary);
}

.auth-pill-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.auth-pill-btn:active {
  transform: translateY(0) scale(0.99);
  transition-duration: var(--motion-duration-press);
}

.auth-pill-btn__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-pill-btn__icon svg {
  width: 15px;
  height: 15px;
  stroke: #cbad69;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-pill-btn--ghost {
  color: #fff;
  background: #17222c;
}

.auth-pill-btn--ghost .auth-pill-btn__icon {
  background: rgba(255, 255, 255, 0.12);
}

.auth-pill-btn--primary {
  color: #fff;
  background: #17222c;
  cursor: pointer;
}

.auth-pill-btn--primary .auth-pill-btn__icon {
  background: rgba(255, 255, 255, 0.12);
}

.auth-links--sohub {
  max-width: 620px;
  margin: 18px auto 0;
}

@media (prefers-reduced-motion: reduce) {
  .auth-card--sohub,
  .auth-pill-btn,
  .auth-card--sohub .auth-card__field [data-slot="input-wrapper"] {
    transition-duration: 0.01ms !important;
  }
}
