/*
  CUBE — Register page: profile picture picker/cropper
  Circular avatar zone with drag-to-reposition and zoom slider.
  Matches the dark/red glass theme used across register.html.
*/

.avatar-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.avatar-circle {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 3px solid rgba(227, 17, 54, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(227, 17, 54, 0.25);
  cursor: grab;
  flex-shrink: 0;
}

.avatar-circle:active {
  cursor: grabbing;
}

.avatar-circle img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 233, 233, 0.3);
  font-size: 34px;
}

.avatar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-choose-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227, 17, 54, 0.12);
  border: 1px solid rgba(227, 17, 54, 0.35);
  color: #ff8fa0;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.avatar-choose-btn:hover {
  background: rgba(227, 17, 54, 0.22);
}

.avatar-remove-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(242, 233, 233, 0.6);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.avatar-remove-btn:hover {
  background: rgba(227, 17, 54, 0.2);
  color: #fff;
}

.avatar-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  color: rgba(242, 233, 233, 0.4);
  font-size: 12px;
}

.avatar-zoom-row input[type="range"] {
  flex: 1;
  accent-color: #e31136;
  height: 4px;
  cursor: pointer;
}

.avatar-picker .field-hint {
  text-align: center;
  max-width: 260px;
}
