#app.auth-app {
  height: var(--auth-visual-height, 100dvh);
  min-height: var(--auth-visual-height, 100dvh);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  scroll-padding: 28px 0 128px;
}

body.auth-signup-body,
body.auth-signup-body #app.auth-app {
  overscroll-behavior-y: contain;
}

.auth-page {
  position: relative;
  min-height: var(--auth-visual-height, 100dvh);
  height: auto;
  overflow: visible;
  background:
    radial-gradient(circle at top left, rgba(255, 170, 138, .38), transparent 34%),
    radial-gradient(circle at top right, rgba(232, 217, 245, .55), transparent 28%),
    linear-gradient(180deg, #FFF4EE 0%, #FFF8F2 56%, #FFF8F2 100%);
}

.auth-page-signup .scroll-area,
.auth-card-scroll {
  overflow: visible;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 10px 24px rgba(58, 46, 42, .08);
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--coral);
  margin-bottom: 12px;
}

.auth-card {
  position: relative;
  margin: 8px 20px 24px;
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.auth-card > [id$='CardContent'] {
  width: 100%;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-help {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--sub);
}

.auth-bg-blur {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: .45;
  pointer-events: none;
}

.auth-bg-blur-left {
  top: -80px;
  left: -92px;
  background: rgba(255, 122, 92, .28);
}

.auth-bg-blur-right {
  top: 118px;
  right: -74px;
  background: rgba(180, 144, 214, .22);
}

.auth-header-layout {
  position: relative;
  padding-bottom: 14px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .85);
  color: var(--coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 8px 24px rgba(255, 122, 92, .10);
  backdrop-filter: blur(10px);
}

.auth-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
}

.auth-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-title {
  font-size: 26px;
  line-height: 1.35;
}

.auth-desc {
  margin-top: 8px;
  max-width: 240px;
  line-height: 1.7;
}

.auth-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .92) 0%, rgba(255, 248, 242, .86) 100%);
  border: 1px solid rgba(255, 255, 255, .80);
  box-shadow: 0 12px 34px rgba(58, 46, 42, .08);
  backdrop-filter: blur(12px);
}

.auth-hero-baby {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFE3D9 0%, #FFD6C8 100%);
  font-size: 28px;
}

.auth-hero-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.auth-hero-card-desc {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}

.auth-hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.auth-hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--coral);
  font-size: 11px;
  font-weight: 700;
}

.password-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.toggle-password {
  min-width: 78px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #E0D4CC;
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.demo-box {
  margin-top: 18px;
  background: #FFF3E8;
  color: #9A6A56;
}

.demo-label {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.demo-item {
  font-size: 13px;
  line-height: 1.7;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 430px) {
  .auth-hero {
    grid-template-columns: 1fr;
  }

  .auth-desc {
    max-width: none;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-page-signup .auth-header {
    padding-top: 32px;
    padding-bottom: 8px;
  }

  .auth-page-signup .auth-hero {
    margin-top: 10px;
  }

  .auth-page-signup .auth-hero-card {
    display: none;
  }

  .auth-page-signup .auth-card {
    margin-bottom: max(28px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .auth-title {
    font-size: 28px;
  }

  .auth-hero-card {
    min-height: 180px;
  }
}
