.app-content--auth {
  background: transparent;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-content--auth::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-top-bar--auth {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.app-top-bar--auth .top-bar__home {
  background: var(--surface-icon);
  box-shadow: var(--shadow-icon-well);
}

.app-top-bar--auth .top-bar__title {
  visibility: hidden;
}

.auth-screen {
  position: relative;
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(18px, 3.4dvh, 42px) var(--mobile-shell-gutter) max(20px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
}

.auth__header {
  text-align: center;
  margin-bottom: clamp(18px, 2.8dvh, 28px);
}

.auth__title {
  color: #172033;
  font-family: var(--font-heading);
  font-size: clamp(28px, 7.4vw, 38px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.auth__subtitle {
  width: min(100%, 24rem);
  max-width: 24rem;
  margin-inline: auto;
  color: #344967;
  font-size: clamp(.95rem, 3.8vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
}

.auth__brand-logo {
  width: 100%;
  max-width: 21.5rem;
  margin-bottom: clamp(18px, 2.8dvh, 28px);
}

.auth__brand-logo.brand-logo--compact {
  max-width: 21.5rem;
}

.auth__panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 32rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.auth__avatar-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(86px, 22vw, 108px);
  height: clamp(86px, 22vw, 108px);
  margin: 0 auto 16px;
}

.auth__profile-avatar {
  width: 100%;
  height: 100%;
}

.auth__form {
  display: grid;
  gap: clamp(14px, 2.2vh, 18px);
  width: 100%;
  max-width: 22rem;
}

.auth__field {
  display: grid;
  gap: 8px;
}

.auth__forgot {
  text-align: right;
  margin-bottom: var(--space-md);
}

.auth__link-btn {
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: .85rem;
  font-weight: 700;
}

.auth__label {
  color: #26364f;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 900;
}

.auth__form input {
  min-height: 62px;
  border: 3px solid rgba(255,255,255,.86);
  border-radius: var(--radius-control);
  background: rgba(255,255,255,.94);
  box-shadow:
    inset 0 -4px 0 rgba(36, 51, 70, .08),
    0 10px 20px rgba(42, 63, 98, .1);
  color: #1d2a41;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 4.8vw, 1.35rem);
  font-weight: 900;
  text-align: center;
}

.auth__form input:focus {
  border-color: rgba(45, 198, 161, .86);
  box-shadow:
    inset 0 -4px 0 rgba(36, 51, 70, .08),
    0 0 0 4px rgba(45, 198, 161, .22),
    0 10px 20px rgba(42, 63, 98, .1);
}

.auth__soft-note {
  padding: 0 8px;
  color: #526079;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.auth__submit-btn,
.auth__secondary-btn {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius-control);
  font-family: var(--font-heading);
  font-size: clamp(1.06rem, 4.4vw, 1.35rem);
  font-weight: 900;
  line-height: 1;
  transition: transform 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.auth__submit-btn {
  background: var(--gradient-action);
  border: 4px solid rgba(255,255,255,.82);
  color: white;
  box-shadow:
    inset 0 5px 0 rgba(255,255,255,.42),
    inset 0 -7px 0 rgba(124, 27, 44, .28),
    0 9px 0 #b9a37f,
    0 17px 22px rgba(44, 50, 78, .24);
  text-shadow: 0 3px 0 rgba(115, 28, 42, .28);
}

.auth__secondary-btn {
  background: var(--gradient-action-alt);
  color: #5b3712;
  box-shadow:
    inset 0 4px 0 rgba(255,255,255,.36),
    inset 0 -4px 0 rgba(132, 80, 22, .16),
    0 12px 22px rgba(43, 61, 91, .12);
}

.auth__submit-btn:active,
.auth__secondary-btn:active {
  transform: translateY(5px);
}

.auth__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: 2px;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 16px 0;
  color: #526079;
  font-size: var(--text-sm);
  width: 100%;
  max-width: 22rem;
}

.auth__guest-btn,
.auth__switch,
.auth__keep-progress,
.auth__consent {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth__guest-btn {
  margin-top: 0;
}

.auth__switch {
  text-align: center;
  margin-top: clamp(14px, 2.5vh, 20px);
  font-size: .95rem;
  color: #405373;
  font-weight: 700;
}

.auth__switch--spaced {
  margin-top: var(--space-lg);
}

.auth__switch a, .auth__switch button {
  color: #147fb7;
  font-weight: 900;
  text-decoration: none;
}

.auth__keep-progress {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  color: #10b981;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

.auth__consent {
  margin-top: var(--space-sm);
}

.auth__consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: .85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.auth__consent-label input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.auth__mail-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-icon-badge);
  background: rgba(255,255,255,.78);
  color: var(--color-primary);
  box-shadow: inset 0 -3px 0 rgba(36, 51, 70, .08), 0 10px 22px rgba(42, 63, 98, .12);
}

.auth__mail-icon .app-icon {
  width: 34px;
  height: 34px;
}

.email-verify-banner {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: var(--mobile-shell-active-width);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-info, #3b82f6);
  color: #fff;
  text-align: center;
  font-size: .9rem;
}

.email-verify-banner__close {
  display: grid;
  place-items: center;
  padding: 0 4px;
  color: #fff;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.email-verify-banner__close .app-icon {
  width: 18px;
  height: 18px;
}

/* ═══ Tablet + Desktop ═══ */
@media (min-width: 640px) {
  .auth-screen {
    padding: clamp(38px, 6dvh, 72px) var(--mobile-shell-gutter) clamp(30px, 5dvh, 56px);
    min-height: 100%;
  }

  .auth__panel {
    width: min(100%, 36rem);
    max-width: 36rem;
  }

  .auth__brand-logo,
  .auth__brand-logo.brand-logo--compact {
    width: 100%;
    max-width: 26rem;
  }

  .auth__form,
  .auth__divider,
  .auth__guest-btn,
  .auth__switch,
  .auth__keep-progress,
  .auth__consent {
    max-width: 27rem;
  }
}

@media (min-width: 1024px) {
  .auth__submit-btn:hover,
  .auth__secondary-btn:hover {
    transform: translateY(-2px);
  }
}

/* Social sign-in (Google) */
.auth__social {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.auth__divider {
  display: flex;
  align-items: center;
  width: 100%;
  color: var(--text-muted, #8a8f98);
  font-size: 0.8rem;
}

.auth__divider::before,
.auth__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle, rgba(0, 0, 0, 0.12));
}

.auth__divider-label {
  padding: 0 12px;
}

.auth__google {
  display: flex;
  justify-content: center;
  min-height: 40px;
  width: 100%;
}

.auth__social--primary {
  margin-top: 6px;
}

.auth__switch--muted {
  margin-top: 16px;
  text-align: center;
}

.auth__link-muted {
  background: none;
  border: 0;
  color: var(--text-muted, #8a8f98);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}

.auth__error-hint {
  color: var(--text-muted, #8a8f98);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}


/* Legal notice under the registration form: readable before an account
   exists, which a store submission also requires. */
.auth__legal {
  margin-top: 14px;
  font-size: .78rem;
  line-height: 1.45;
  text-align: center;
  opacity: .78;
}

.auth__legal-link {
  text-decoration: underline;
  white-space: nowrap;
}
.auth__form + .auth__soft-note {
  margin-top: 18px;
  max-width: 22rem;
  line-height: 1.45;
}
