
.auth-loading {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.auth-page {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}


.auth-panel--brand {
  width: 55%;
  background: url('../assets/tiffin.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.auth-panel--brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 52px 60px;
}

.auth-wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
}

.auth-brand-text {
  flex-shrink: 0;
  padding-bottom: 4px;
}

.auth-brand-headline {
  font-family: var(--serif);
  font-size: clamp(40px, 3.8vw, 60px);
  font-weight: 500;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.03em;
}


.auth-panel--form {
  width: 45%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-form-inner {
  width: 100%;
  max-width: 360px;
  margin-top: auto;
  margin-bottom: auto;
  padding: 60px 52px;
}

@keyframes auth-step-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.auth-step {
  animation: auth-step-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-invite-banner {
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #EDE8E3;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 0 auto;
  margin-top: 40px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(28, 20, 16, 0.04);
}

.auth-invite-banner__above {
  font-size: 13px;
  color: #A89388;
  line-height: 1.5;
}

.auth-invite-banner strong {
  color: #1C1410;
  font-weight: 500;
}

.auth-invite-banner__org {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: #1C1410;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 5px 0;
}

.auth-invite-banner__below {
  font-size: 13px;
  color: #A89388;
}

.auth-invite-banner__plateful {
  color: #D4472A;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #D4472A;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.auth-step-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.auth-step-sub {
  font-size: 14px;
  color: var(--faint);
  line-height: 1.6;
  margin-bottom: 36px;
}

.auth-panel--form .form-input,
.auth-panel--form .form-select {
  font-size: 16px;
}


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

  .auth-panel--brand {
    width: 100%;
    height: 220px;
    min-height: 220px;
    flex-shrink: 0;
  }

  .auth-brand-inner {
    padding: 28px 24px;
    justify-content: space-between;
  }

  .auth-wordmark {
    font-size: 20px;
  }

  .auth-brand-text {
    display: block;
  }

  .auth-panel--form {
    width: 100%;
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  .auth-invite-banner {
    margin-top: 24px;
    max-width: 100%;
  }

  .auth-form-inner {
    max-width: 100%;
    padding: 36px 24px 48px;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .auth-brand-headline {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.15;
  }
}

@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 768px) {
    .auth-panel--brand {
      padding-top: env(safe-area-inset-top);
      height: calc(220px + env(safe-area-inset-top));
      min-height: calc(220px + env(safe-area-inset-top));
    }
  }

  .auth-panel--form {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
