/* ==========================================================================
   ZYNTARA AUTHENTICATION & LOGIN PORTAL STYLES (CUSTOMER OTP, OWNER, STAFF, ADMIN)
   ========================================================================== */

.auth-modal-card {
  width: 440px;
  max-width: 95vw;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card-hover);
  position: relative;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-modal-logo {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

.auth-modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Auth Role Tabs */
.auth-role-tabs {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  margin-bottom: 20px;
}

.auth-role-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.auth-role-tab-btn.active {
  background: var(--bg-card);
  color: var(--brand-green);
  box-shadow: var(--shadow-card);
}

/* Dev Bypass Banner */
.dev-bypass-banner {
  background: var(--brand-green-soft);
  border: 1px dashed var(--brand-green-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dev-bypass-badge {
  background: var(--brand-green);
  color: #05140b;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 10px;
}

.otp-boxes-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
}

.otp-digit-input {
  width: 52px;
  height: 56px;
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  text-align: center;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border var(--transition-fast);
}

.otp-digit-input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: var(--focus-ring);
}

/* User Profile Header Dropdown */
.profile-menu-container {
  position: relative;
}

.profile-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.profile-avatar-btn:hover {
  border-color: var(--brand-green);
}

.profile-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-input);
}

.profile-name-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-role-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.profile-role-tag.customer { background: var(--brand-green-soft); color: var(--brand-green); }
.profile-role-tag.owner { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.profile-role-tag.staff { background: var(--brand-green-soft); color: var(--brand-green); }
.profile-role-tag.admin { background: rgba(255, 255, 255, 0.12); color: var(--text-primary); }

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 6px;
  z-index: 1000;
  display: none;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-dropdown-menu.active {
  display: block;
}

.profile-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.profile-dropdown-item:hover {
  background: var(--bg-input);
  color: var(--brand-green);
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}
