/* User login — mockup-style auth screen inside simple login flow */
:root {
  --ua-red: #1a1a1a;
  --ua-red-dark: #333333;
  --ua-red-deeper: #000000;
  --ua-pink-bg: #f0f0f0;
  --ua-pink-bar: #e8e8e8;
  --ua-text: #1f1f1f;
  --ua-muted: #9a9a9a;
  --ua-border: #e8e8e8;
  --ua-page-top: calc(env(safe-area-inset-top, 0px) + 24px);
}

html.zimoo-android-app #screenAuth {
  --ua-page-top: 24px;
}

/* Full-bleed auth step */
body:has(.page.auth-step-active) {
  padding: 0;
}

.page.auth-step-active {
  padding: 0;
  min-height: 100dvh;
  min-height: 100vh;
}

html.zimoo-android-app.zimoo-login-page .page.auth-step-active {
  padding: 0;
}

.page.auth-step-active .screens-wrap {
  min-height: 100dvh;
  min-height: 100vh;
}

.page.auth-step-active .bottom-bar {
  display: none;
}

#screenAuth {
  padding: 0;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

#screenAuth.active {
  display: flex;
  flex-direction: column;
}

.user-auth-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100dvh;
  min-height: 100vh;
  background: #fff;
}

/* ── Red hero header ── */
.user-auth-hero {
  position: relative;
  flex-shrink: 0;
  background: var(--ua-red);
  padding: calc(var(--ua-page-top) + 8px) 20px 52px;
  text-align: center;
  overflow: hidden;
}

.user-auth-hero-inner {
  position: relative;
  z-index: 2;
}

.user-auth-back {
  position: absolute;
  top: calc(var(--ua-page-top) + 8px);
  left: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.user-auth-back:active {
  transform: scale(0.94);
  opacity: 0.85;
}

.user-auth-back svg {
  width: 20px;
  height: 20px;
  color: var(--ua-red);
}

.user-auth-deco {
  position: absolute;
  z-index: 1;
  opacity: 0.35;
  pointer-events: none;
}

.user-auth-deco--burger {
  left: 8px;
  top: calc(var(--ua-page-top) + 72px);
  width: 72px;
  height: 72px;
}

.user-auth-deco--bag {
  right: 4px;
  top: calc(var(--ua-page-top) + 56px);
  width: 88px;
  height: 88px;
}

.user-auth-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.user-auth-logo .zimoo-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-auth-hero-title {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.user-auth-hero-sub {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.user-auth-hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 36px;
  background: #fff;
  border-radius: 32px 32px 0 0;
  z-index: 3;
}

/* ── White form panel ── */
.user-auth-panel {
  flex: 1;
  margin-top: -20px;
  padding: 8px 22px 16px;
  background: #fff;
  border-radius: 28px 28px 0 0;
  position: relative;
  z-index: 4;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.user-auth-field {
  margin-bottom: 16px;
}

.user-auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ua-text);
  margin-bottom: 8px;
}

.user-auth-input-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--ua-border);
  border-radius: 12px;
  height: 50px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s;
}

.user-auth-input-row:focus-within {
  border-color: var(--ua-red);
}

.user-auth-input-icon {
  flex-shrink: 0;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ua-pink-bg);
  color: var(--ua-red);
}

.user-auth-input-icon svg {
  display: block;
}

.user-auth-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ua-text);
  background: transparent;
  min-width: 0;
  padding: 0 14px 0 10px;
}

.user-auth-input-row input::placeholder {
  color: #b8b8b8;
  font-weight: 400;
}

.user-auth-eye-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.user-auth-eye-btn:active {
  opacity: 0.7;
}

.user-auth-eye-icons {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.user-auth-eye-icon {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 50%;
}

.user-auth-eye-icon--show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.user-auth-eye-icon--hide {
  opacity: 0;
  transform: scale(0.55) rotate(-14deg);
}

.user-auth-eye-btn.is-visible .user-auth-eye-icon--show {
  opacity: 0;
  transform: scale(0.55) rotate(14deg);
}

.user-auth-eye-btn.is-visible .user-auth-eye-icon--hide {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.user-auth-eye-btn.is-animating .user-auth-eye-icons {
  animation: userAuthEyePop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes userAuthEyePop {
  0% { transform: scale(1); }
  40% { transform: scale(0.78); }
  100% { transform: scale(1); }
}

.user-auth-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--ua-red);
  text-decoration: none;
  margin: -4px 0 18px;
}

.user-auth-login-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--ua-red);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 52px;
  transition: background 0.15s;
  touch-action: manipulation;
}

.user-auth-login-btn:hover {
  background: var(--ua-red-dark);
}

.user-auth-login-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.user-auth-login-chevron {
  position: absolute;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ua-red-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-auth-login-chevron svg {
  display: block;
}

#screenAuth .dp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--ua-muted);
  font-size: 12px;
  font-weight: 500;
}

#screenAuth .dp-divider::before,
#screenAuth .dp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ua-border);
}

#screenAuth .dp-social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

#screenAuth .dp-social-btn {
  flex: 1;
  height: 48px;
  border: 1.5px solid var(--ua-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ua-text);
  background: #fff;
  touch-action: manipulation;
  transition: border-color 0.15s, background 0.15s;
}

#screenAuth .dp-social-btn:active {
  background: #fafafa;
}

#screenAuth #login-phone-btn {
  color: var(--ua-red);
}

#screenAuth #login-phone-btn svg {
  color: var(--ua-red);
}

.user-auth-footer {
  margin: 0 0 8px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.user-auth-footer a {
  color: var(--ua-red);
  font-weight: 700;
  text-decoration: none;
}

.user-auth-footer-arrow {
  display: inline-block;
  margin-left: 2px;
}

/* ── Bottom trust bar ── */
.user-auth-trust {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}

.user-auth-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a.user-auth-trust-item:active {
  opacity: 0.75;
}

.user-auth-trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(239, 51, 45, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ua-red);
}

.user-auth-trust-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ua-text);
  line-height: 1.2;
}

.user-auth-trust-desc {
  font-size: 9px;
  font-weight: 500;
  color: var(--ua-muted);
  line-height: 1.2;
}

/* Messages */
#screenAuth .dp-error.show,
#screenAuth .login-inline-msg:not([hidden]) {
  display: block;
}

#screenAuth .dp-error {
  font-size: 13px;
  color: #d93025;
  text-align: center;
  margin-bottom: 8px;
}

#screenAuth .login-inline-msg {
  font-size: 13px;
  margin: 0 0 10px;
  text-align: center;
}

#screenAuth .login-inline-msg.is-error {
  color: #d93025;
}

/* Phone / OTP screens — keep existing back placement */
#screenPhone,
#screenOtp {
  padding-top: 60px;
}

#screenPhone .user-login-step-content,
#screenOtp .user-login-step-content {
  padding: 0 24px 24px;
}

#screenPhone .back-btn,
#screenOtp .back-btn {
  top: 72px;
}

.simple-login-app.auth-step-active .bottom-bar .get-started-btn,
.page.auth-step-active .bottom-bar .get-started-btn,
.simple-login-app.auth-step-active .bottom-bar .login-legal-simple,
.page.auth-step-active .bottom-bar .login-legal-simple {
  display: none;
}

.page.auth-step-active .bottom-bar .dots,
.simple-login-app.auth-step-active .bottom-bar .dots {
  display: none;
}
