/* ==========================================================================
   AUTH FORMS & UI ELEMENTS
   ========================================================================== */
.ep-auth-shell {
  display: flex;
  justify-content: center;
}

.ep-auth-card {
  width: 420px;
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(var(--ep-primary-rgb), .06);
}

.ep-auth-title {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
}

.ep-auth-sub {
  margin: 0 0 16px;
  color: var(--ep-text-soft);
}

.ep-auth-form input {
  width: 92%;
  padding: 10px;
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.ep-auth-form label {
  font-weight: 700;
  font-size: .85rem;
}

/* Password Toggle */
.ep-password-wrapper {
  position: relative;
  display: inline-block;
  width: 92%;
  margin-bottom: 10px;
}

.ep-password-wrapper input {
  width: 100% !important;
  padding: 10px 40px 10px 10px !important;
  margin-bottom: 0 !important;
}

.ep-password-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ep-text-soft);
  transition: color .2s ease;
  line-height: 0;
  border-radius: 4px;
}

.ep-password-toggle:hover {
  color: var(--ep-primary);
}

.ep-password-toggle:focus {
  outline: 2px solid rgba(var(--ep-primary-rgb), .3);
  outline-offset: 2px;
}

.ep-eye-icon,
.ep-eye-off-icon {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}

/* Messages / alerts */
.ep-flash-wrap {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-flash {
  padding: 10px 14px;
  border-radius: var(--ep-radius-sm);
  border: 1px solid var(--ep-border);
  font-size: .8rem;
  font-weight: 500;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ep-flash.success {
  border-color: #b4e2cc;
  background: #edf9f4;
  color: #0f6848;
}

.ep-flash.error {
  border-color: #f5b5b2;
  background: #fdf2f1;
  color: #a32924;
}

/* UI Elements */
.ep-buy-btn {
  position: relative;
  overflow: visible;
}

.ep-inline-added-badge {
  position: absolute;
  right: -10px;
  top: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ep-primary);
  border-radius: 999px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: .78rem;
  box-shadow: 0 6px 18px rgba(var(--ep-primary-rgb), .12);
  transform: scale(1);
  transition: transform .18s ease, opacity .3s ease;
}

.ep-inline-added-badge--hide {
  transform: scale(.85);
  opacity: 0;
}
