/* Customer login / register modals — GiftPey brand (red, yellow, white) */

:root {
  --auth-red: #e31e24;
  --auth-red-dark: #b71c1c;
  --auth-red-deep: #8b0000;
  --auth-yellow: #ffd700;
  --auth-yellow-light: #ffe566;
}

.customer-auth-modal .modal-dialog.customer-auth-dialog {
  max-width: 920px;
  width: calc(100% - 1.5rem);
}

.customer-auth-shell {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.customer-auth-layout {
  display: flex;
  min-height: 520px;
}

/* —— Promo panel (left) —— */
.customer-auth-promo {
  position: relative;
  flex: 0 0 42%;
  max-width: 42%;
  padding: 2rem 1.75rem 1.5rem;
  background: linear-gradient(165deg, #a31515 0%, #7a0e12 38%, #4a080c 100%);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.customer-auth-promo-sparkles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 18% 22%, rgba(255, 215, 0, 0.55) 0, transparent 100%),
    radial-gradient(1px 1px at 72% 18%, rgba(255, 255, 255, 0.4) 0, transparent 100%),
    radial-gradient(2px 2px at 88% 48%, rgba(255, 200, 80, 0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 35% 68%, rgba(255, 215, 0, 0.35) 0, transparent 100%),
    radial-gradient(1px 1px at 55% 85%, rgba(255, 255, 255, 0.2) 0, transparent 100%);
  pointer-events: none;
}

.customer-auth-promo-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
  text-align: center;
}

.customer-auth-promo-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.customer-auth-promo-title {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
}

.customer-auth-promo-title span {
  color: var(--auth-yellow);
}

.customer-auth-promo-desc {
  position: relative;
  z-index: 1;
  margin: 0 0 auto;
  padding-bottom: 1.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.customer-auth-promo-features {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.customer-auth-promo-features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
}

.customer-auth-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  line-height: 1;
}

.customer-auth-feature-icon i {
  font-size: 1.85rem;
  color: var(--auth-yellow);
  -webkit-text-stroke: 0.35px var(--auth-yellow-light);
}

.customer-auth-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
}

/* —— Form panel (right) —— */
.customer-auth-form-panel {
  position: relative;
  flex: 1;
  background: #ffffff;
  padding: 2rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.customer-auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  opacity: 0.55;
}

.customer-auth-close:hover {
  opacity: 1;
}

.customer-auth-form-inner {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.customer-auth-heading {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.2;
}

.customer-auth-emoji {
  font-size: 1.35rem;
}

.customer-auth-subheading {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.customer-auth-form .input,
.customer-auth-form .input.text,
.customer-auth-form .input.email,
.customer-auth-form .input.password,
.customer-auth-form .input.tel {
  margin: 0;
  padding: 0;
}

.customer-auth-form .customer-auth-field {
  margin-bottom: 1.1rem;
}

.customer-auth-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.customer-auth-optional {
  font-weight: 400;
  color: #9ca3af;
}

.customer-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.customer-auth-input-icon {
  position: absolute;
  left: 0.9rem;
  z-index: 2;
  font-size: 1rem;
  color: #9ca3af;
  pointer-events: none;
}

.customer-auth-input-wrap .customer-auth-input,
.customer-auth-input-wrap input[type="email"],
.customer-auth-input-wrap input[type="password"],
.customer-auth-input-wrap input[type="text"],
.customer-auth-input-wrap input[type="tel"] {
  width: 100%;
  padding: 0.72rem 2.75rem 0.72rem 2.65rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.customer-auth-input-wrap .customer-auth-input:focus,
.customer-auth-input-wrap input:focus {
  outline: none;
  border-color: var(--auth-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
}

.customer-auth-password-toggle {
  position: absolute;
  right: 0.75rem;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 0.25rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
}

.customer-auth-password-toggle:hover {
  color: var(--auth-red);
}

.customer-auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 1rem;
}

.customer-auth-forgot {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--auth-red);
  text-decoration: none;
}

.customer-auth-forgot:hover {
  color: var(--auth-red-dark);
  text-decoration: underline;
}

.customer-auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--auth-red) 0%, var(--auth-red-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 20px rgba(227, 30, 36, 0.35);
}

.customer-auth-submit-btn:hover,
.customer-auth-submit-btn:focus {
  color: #ffffff;
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(227, 30, 36, 0.45);
  transform: translateY(-1px);
}

.customer-auth-switch {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.customer-auth-link-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--auth-red);
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.customer-auth-link-btn:hover {
  color: var(--auth-red-dark);
  text-decoration: underline;
}

.customer-auth-modal .error-message {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 0.25rem;
}

@media (max-width: 767.98px) {
  .customer-auth-layout {
    flex-direction: column;
    min-height: auto;
  }

  .customer-auth-promo {
    flex: none;
    max-width: none;
    padding: 1.5rem 1.25rem 1.25rem;
    min-height: auto;
  }

  .customer-auth-promo-logo {
    max-width: 160px;
  }

  .customer-auth-promo-title {
    font-size: 1.25rem;
  }

  .customer-auth-promo-desc {
    padding-bottom: 1rem;
  }

  .customer-auth-promo-features {
    margin-top: 1rem;
  }

  .customer-auth-feature-icon {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .customer-auth-feature-text {
    font-size: 0.65rem;
  }

  .customer-auth-form-panel {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}
