@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(107, 184, 150, 0.2), transparent 28%),
    linear-gradient(135deg, #f3f6f2 0%, #eef3f9 48%, #f8f4eb 100%);
}

.auth-shell {
  max-width: 1520px;
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 46px) 32px;
}

.public-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(16, 51, 64, 0.08);
  backdrop-filter: blur(8px);
}

.public-topbar-inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 12px clamp(18px, 4vw, 46px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.public-brand {
  color: #18313b;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-nav a {
  color: #2c4852;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.public-nav a:hover {
  text-decoration: underline;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 430px);
  gap: 26px;
  align-items: stretch;
}

.auth-rail {
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
  align-self: stretch;
}

.landing-stage {
  position: relative;
  display: flex;
  min-height: 100%;
  padding: 8px 0 0;
  flex: 1;
}

.auth-card-shell,
.stage-surface,
.staff-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(27, 51, 63, 0.08);
  box-shadow: 0 30px 80px rgba(37, 63, 74, 0.10);
  backdrop-filter: blur(16px);
}

.auth-card-shell {
  height: 100%;
  padding: 14px 16px 14px;
  border-radius: 22px;
  justify-content: center;
}

.info-badge,
.hero-kicker,
.staff-eyebrow,
.panel-heading span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 51, 64, 0.08);
  color: #1b4655;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-type-switch {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  background-color: var(--color-bg-secondary);
  padding: 4px;
  border-radius: var(--border-radius);
}

.switch-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 600;
  color: var(--color-text-secondary);
  user-select: none;
}

.switch-label input[type='radio'] {
  display: none;
}

.switch-label:hover {
  background-color: rgba(74, 144, 164, 0.1);
}

.switch-label:has(input[type='radio']:checked) {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.switch-label input[type='radio']:checked + .switch-text {
  color: var(--color-primary);
}

.auth-form {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-form.hidden,
.form-fields.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text-primary);
}

.form-subtitle,
.staff-lead,
.staff-note {
  color: var(--color-text-secondary);
  margin: 0 0 12px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.form-group {
  position: relative;
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-primary);
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='tel'],
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
  background-color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.1);
}

.checkbox-group {
  margin-bottom: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.checkbox-group input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.checkbox-group a,
.staff-back-link,
.auth-link {
  color: var(--color-primary);
  text-decoration: none;
}

.checkbox-group a:hover,
.staff-back-link:hover,
.auth-link:hover {
  text-decoration: underline;
}

.auth-divider {
  text-align: center;
  margin: 10px 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: var(--color-border);
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

button[type='submit'],
button[type='button'] {
  margin-bottom: 6px;
}

.auth-submit-btn {
  width: 100%;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
  gap: 10px;
}

.compact-check {
  margin-bottom: 8px;
}

.auth-link {
  font-size: 14px;
  transition: var(--transition);
  flex: 1;
  text-align: center;
}

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  max-width: 400px;
  pointer-events: none;
}

.stage-surface {
  position: relative;
  z-index: 1;
  flex: 1;
  border-radius: 26px;
  width: 100%;
  height: 100%;
  padding: 36px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92) 12%, rgba(255, 255, 255, 0.72) 45%, rgba(255, 255, 255, 0.5) 100%),
    url('../assets/hero-housing.svg') center/cover no-repeat;
  z-index: -1;
}

.hero-copy {
  max-width: 840px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 66px);
  line-height: 0.98;
  margin: 14px 0 16px;
  letter-spacing: -0.03em;
}

.hero-copy p {
  max-width: 54ch;
  font-size: 19px;
  color: #425761;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.hero-actions .btn-secondary {
  border: 1px solid rgba(44, 72, 82, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(44, 72, 82, 0.36);
}

.marketing-sections {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 28px;
}

.story-section {
  border-radius: 32px;
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 248, 0.98));
  border: 1px solid rgba(25, 57, 68, 0.08);
  box-shadow: 0 22px 60px rgba(31, 57, 68, 0.08);
}

.story-section-company {
  background: linear-gradient(180deg, rgba(246, 251, 251, 0.98), rgba(237, 245, 245, 0.98));
}

.story-section-company-soft {
  background: linear-gradient(180deg, rgba(243, 248, 248, 0.98), rgba(238, 244, 244, 0.98));
  margin-bottom: 34px;
}

.section-intro {
  max-width: 860px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 51, 64, 0.08);
  color: #1b4655;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-tag-company {
  background: rgba(32, 79, 93, 0.1);
  color: #234b57;
}

.section-intro h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
  margin: 14px 0 12px;
  color: #18313b;
}

.section-intro p {
  max-width: 64ch;
  font-size: 17px;
  color: #53646c;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.impact-card {
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f7 100%);
  border: 1px solid rgba(25, 57, 68, 0.08);
  box-shadow: 0 14px 34px rgba(35, 61, 72, 0.08);
}

.impact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1;
  color: #18313b;
}

.impact-card span {
  color: #5a6b73;
  font-size: 15px;
  line-height: 1.45;
}

.impact-strip-company .impact-card {
  background: linear-gradient(180deg, #1f4a58 0%, #2a6170 100%);
  border-color: rgba(35, 75, 87, 0.18);
  box-shadow: 0 18px 40px rgba(23, 49, 60, 0.14);
}

.impact-strip-company .impact-card strong,
.impact-strip-company .impact-card span {
  color: #f6fbfc;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.story-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5f7 100%);
  border: 1px solid rgba(25, 57, 68, 0.08);
  box-shadow: 0 14px 34px rgba(35, 61, 72, 0.08);
}

.story-card h3 {
  font-size: 22px;
  line-height: 1.18;
  margin-bottom: 10px;
  color: #18313b;
}

.story-card p {
  color: #55666e;
  line-height: 1.58;
}

.story-card-mark {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(74, 144, 164, 0.12);
  color: #245565;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card-company {
  background: linear-gradient(180deg, #ffffff 0%, #f0f5f6 100%);
}

.story-card-mark-company {
  background: rgba(32, 79, 93, 0.12);
  color: #224957;
}

.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.flow-track::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50px;
  height: 2px;
  background: linear-gradient(90deg, rgba(74, 144, 164, 0.22), rgba(107, 184, 150, 0.38), rgba(74, 144, 164, 0.22));
}

.flow-step {
  position: relative;
  padding: 26px 22px 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f9 100%);
  border: 1px solid rgba(25, 57, 68, 0.08);
  box-shadow: 0 16px 40px rgba(35, 61, 72, 0.08);
}

.flow-step:nth-child(1) {
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

.flow-step:nth-child(2) {
  background: linear-gradient(180deg, #ffffff 0%, #eef8f3 100%);
}

.flow-step:nth-child(3) {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f5 100%);
}

.flow-step-number {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, #123542 0%, #2f6071 100%);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(18, 53, 66, 0.16);
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: #18313b;
}

.flow-step p {
  color: #4a5d66;
  line-height: 1.58;
}

.operations-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.operations-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #224957 0%, #2b6070 100%);
  box-shadow: 0 18px 40px rgba(23, 49, 60, 0.14);
}

.operations-summary-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.operations-summary-item:last-child {
  border-bottom: 0;
}

.operations-summary-item strong {
  display: block;
  margin-bottom: 6px;
  color: #f6fbfc;
  font-size: 17px;
}

.operations-summary-item span {
  color: rgba(246, 251, 252, 0.86);
  line-height: 1.5;
}

.story-card-company-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f0f5f6 100%);
}

#company-ops {
  margin-bottom: 36px;
}

.notification {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
  pointer-events: all;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.success {
  border-left: 4px solid var(--color-success);
}

.notification.error {
  border-left: 4px solid var(--color-danger);
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.notification-message {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.user-type-selector {
  display: flex;
  gap: 16px;
  margin-bottom: 32px !important;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: var(--transition);
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.radio-label input[type='radio'] {
  cursor: pointer;
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.radio-label:hover {
  background-color: rgba(74, 144, 164, 0.05);
}

.radio-label:has(input[type='radio']:checked) {
  border-color: var(--color-primary);
  background-color: rgba(74, 144, 164, 0.05);
}

.radio-label input[type='radio']:checked + span {
  color: var(--color-primary);
  font-weight: 600;
}

.phone-prefix {
  position: absolute;
  left: 16px;
  top: 38px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  pointer-events: none;
}

.form-group input[type='tel'] {
  padding-left: 60px !important;
}

.staff-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff4f3 0%, #e6edf5 100%);
}

.staff-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.staff-panel {
  width: min(560px, 100%);
  border-radius: 28px;
  padding: 32px;
}

.staff-panel h1 {
  font-size: 38px;
  line-height: 1.05;
  margin: 16px 0 12px;
}

.logged-actions.hidden {
  display: none;
}

.logged-actions {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

@media (max-width: 1180px) {
  .hero-band,
  .impact-strip,
  .story-grid,
  .flow-track,
  .operations-layout {
    grid-template-columns: 1fr;
  }

  .flow-track::before {
    display: none;
  }

  .auth-rail {
    position: static;
    top: auto;
  }
}

@media (max-width: 780px) {
  .public-topbar-inner,
  .auth-rail,
  .landing-stage {
    padding: 18px;
  }

  .public-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .auth-card-shell,
  .stage-surface,
  .story-section,
  .staff-panel {
    border-radius: 22px;
    padding: 22px;
  }

  .hero-actions,
  .auth-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy h1,
  .staff-panel h1 {
    max-width: none;
  }

  .section-intro h2 {
    font-size: 28px;
  }

  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
