/**
 * Delivery / Retailer / Branch login & signup — user-panel matching auth UI.
 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: var(--dp-text, #1A1A1A);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; outline: none; }
button:focus, input:focus, select:focus, textarea:focus, a:focus, :focus-visible { outline: none; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--dp-primary, #E53935); text-decoration: none; font-weight: 600; }
img { display: block; max-width: 100%; }

.dp-auth-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.dp-auth-top {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: calc(var(--zimoo-safe-top, env(safe-area-inset-top, 0px)) + 8px) 16px 8px;
}

.dp-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dp-text, #1A1A1A);
  touch-action: manipulation;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.dp-back-btn:active {
  opacity: 0.55;
  transform: scale(0.94);
}

.dp-auth-body {
  flex: 1;
  padding: 8px 24px 32px;
  overflow-y: auto;
}

.dp-auth-brand {
  text-align: center;
  margin-bottom: 32px;
}

.dp-brand-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--dp-primary-light, #FFE8E8);
  border: 2px solid var(--dp-primary-border, #FFCDD2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--dp-primary, #E53935);
}

.dp-auth-brand h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dp-text, #1A1A1A);
}

.dp-auth-brand p {
  font-size: 14px;
  color: var(--dp-muted, #888);
  line-height: 1.4;
}

.dp-field {
  margin-bottom: 16px;
}

.dp-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted, #888);
  margin-bottom: 6px;
}

.dp-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--dp-border, #E8E8E8);
  border-radius: 12px;
  padding: 0 14px;
  height: 50px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dp-input-wrap:focus-within {
  border-color: var(--dp-primary, #E53935);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.dp-input-wrap svg { flex-shrink: 0; color: var(--dp-muted, #888); }

.dp-input-wrap input,
.dp-input-wrap select {
  flex: 1;
  border: none;
  font-size: 15px;
  background: transparent;
  min-width: 0;
  color: var(--dp-text, #1A1A1A);
}

.dp-input-wrap select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.dp-input-wrap.textarea-wrap {
  height: auto;
  align-items: flex-start;
  padding-top: 4px;
}

.dp-input-wrap textarea {
  flex: 1;
  border: none;
  font-size: 14px;
  background: transparent;
  resize: none;
  padding: 12px 0;
  min-height: 72px;
}

.dp-eye-btn {
  color: var(--dp-muted, #888);
  padding: 4px;
  display: flex;
}

.dp-forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  margin: -6px 0 20px;
}

.dp-btn-primary {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  background: var(--dp-primary, #E53935);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.15s, transform 0.08s;
  touch-action: manipulation;
}

.dp-btn-primary:active {
  background: var(--dp-primary-dark, #C62828);
  transform: scale(0.98);
}

.dp-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dp-btn-outline {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--dp-border, #E8E8E8);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--dp-text, #1A1A1A);
  touch-action: manipulation;
}

.dp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--dp-muted, #888);
  font-size: 12px;
}

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

.dp-social-row {
  display: flex;
  gap: 12px;
}

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

.dp-social-btn:active,
.dp-btn-outline:active {
  transform: scale(0.98);
}

.dp-error {
  display: none;
  background: #FFEBEE;
  color: #C62828;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.dp-error:not(:empty) {
  display: block;
}

.dp-auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--dp-muted, #888);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
}

.dp-auth-footer a {
  color: var(--dp-primary, #E53935);
  font-weight: 700;
}

.panel-login-loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.panel-login-loading[hidden] {
  display: none !important;
}

.dp-error.show { display: block; }

.dp-success {
  background: #E8F5E9;
  color: #1B5E20;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: none;
}

.dp-success.show { display: block; }

.dp-hidden-input { display: none; }

/* Create account */
.dp-photo-upload {
  text-align: center;
  margin-bottom: 20px;
}

.dp-photo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px dashed var(--dp-border, #E8E8E8);
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #fafafa;
}

.dp-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-photo-circle span {
  font-size: 11px;
  color: var(--dp-muted, #888);
  font-weight: 600;
}

.dp-docs-section label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted, #888);
  display: block;
  margin-bottom: 8px;
}

.dp-docs-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.dp-doc-add {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--dp-primary-border, #FFCDD2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--dp-primary, #E53935);
  font-size: 10px;
  font-weight: 600;
  background: var(--dp-primary-light, #FFE8E8);
  flex-shrink: 0;
}

.dp-doc-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--dp-border, #E8E8E8);
}

.dp-doc-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dp-doc-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forgot password tabs */
.dp-fp-tabs {
  display: flex;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}

.dp-fp-tab {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-muted, #888);
}

.dp-fp-tab.active {
  background: #ffffff;
  color: var(--dp-primary, #E53935);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dp-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: #795548;
  line-height: 1.5;
  margin-top: 16px;
}

.dp-notice strong { color: var(--dp-text, #1A1A1A); }
