<template>
  <div class="auth-icon">
    <UiIcon
      :name="icon"
      class="auth-icon__icon"
      size="24"
    />
  </div>
</template>

<script setup lang="ts">
withDefaults(defineProps<{
  icon?: string
}>(), {
  icon: 'user-filled'
});
</script>

<style lang="scss">
.auth-icon {
  --size: 64px;

  display: grid;
  place-content: center;
  border-radius: $radius-full;
  width: var(--size);
  height: var(--size);
  background-color: $popup-auth-icon-bg;

  @include from-br(sm) {
    --size: 48px;
  }
}

.auth-icon__icon {
  width: $popup-auth-size;
  height: $popup-auth-size;
  color: $popup-auth-icon;
}
</style>
