@charset "UTF-8";
/*
--------------------|📝 : Reset
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*
--------------------|📝 : Tag
*/
html {
  font-size: 62.5%;
}

@media only screen and (min-width: 112em) {
  html {
    font-size: 75%;
  }
}

@media only screen and (max-width: 75em) {
  html {
    font-size: 56.25%;
  }
}

@media only screen and (max-width: 56.25em) {
  html {
    font-size: 50%;
  }
}

body {
  background: linear-gradient(135deg, #141f24 0%, #1a2d35 100%);
  min-height: 100vh;
  font-family: IRANYekanXFaNumRegular, sans-serif;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

img {
  display: block;
}

a {
  text-decoration: none;
}

button {
  all: unset;
  cursor: pointer;
}

ul {
  list-style-type: none;
}

/*
--------------------|📝 : Profile Edit
*/
.profile-edit {
  position: relative;
  min-height: 100vh;
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* Header */
.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  margin-bottom: 2rem;
  position: relative;
}

.profile-header__back {
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(88, 204, 8, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #58cc08;
  font-size: 2.4rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid rgba(88, 204, 8, 0.3);
}

.profile-header__back:hover {
  background: rgba(88, 204, 8, 0.3);
  transform: scale(1.1);
}

.profile-header__title {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
}

.profile-header__step {
  color: #58cc08;
  font-size: 1.6rem;
  font-weight: 600;
  background: rgba(88, 204, 8, 0.15);
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  border: 1px solid rgba(88, 204, 8, 0.3);
}

/* Avatar Section */
.avatar-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0;
  padding: 2rem;
}

.avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.avatar {
  width: 15rem;
  height: 15rem;
  background: linear-gradient(135deg, #58cc08 0%, #58a700 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(88, 204, 8, 0.4);
  transition: all 0.4s ease;
  animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.avatar__face {
  width: 80%;
  height: 80%;
  position: relative;
}

.avatar__eye {
  width: 2rem;
  height: 2rem;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 35%;
  animation: blink 3s infinite;
}

.avatar__eye--left {
  left: 25%;
}

.avatar__eye--right {
  right: 25%;
}

.avatar__mouth {
  width: 4rem;
  height: 2rem;
  border: 3px solid #ffffff;
  border-top: none;
  border-radius: 0 0 4rem 4rem;
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

@keyframes blink {
  0%, 90%, 100% {
    height: 2rem;
  }
  95% {
    height: 0.2rem;
  }
}

/* Avatar States */
.avatar--thinking .avatar__eye {
  animation: thinking 1s ease-in-out infinite;
}

@keyframes thinking {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.avatar--happy .avatar__mouth {
  border-radius: 4rem;
  height: 3rem;
  border-top: 3px solid #ffffff;
  border-bottom: none;
  transform: translateX(-50%) translateY(-5px);
}

.avatar--success {
  animation: successBounce 0.6s ease-out;
  box-shadow: 0 10px 50px rgba(88, 204, 8, 0.6);
}

@keyframes successBounce {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.avatar--error {
  animation: errorShake 0.5s ease-in-out;
  background: linear-gradient(135deg, #ff5722 0%, #e64a19 100%);
  box-shadow: 0 10px 40px rgba(255, 87, 34, 0.4);
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.avatar__speech {
  background: rgba(32, 47, 54, 0.95);
  padding: 1.5rem 2.5rem;
  border-radius: 2rem;
  border: 2px solid rgba(88, 204, 8, 0.3);
  position: relative;
  max-width: 30rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.avatar__speech::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 1rem solid transparent;
  border-right: 1rem solid transparent;
  border-bottom: 1rem solid rgba(88, 204, 8, 0.3);
}

.avatar__speech::after {
  content: '';
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.8rem solid transparent;
  border-right: 0.8rem solid transparent;
  border-bottom: 0.8rem solid rgba(32, 47, 54, 0.95);
}

.avatar__speech p {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
}

/* Form Section */
.form-section {
  flex: 1;
  padding: 2rem 0;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-label {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  right: 1.5rem;
  color: #58cc08;
  font-size: 1.8rem;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 1.6rem 1.5rem;
  padding-right: 5rem;
  background: rgba(32, 47, 54, 0.8);
  border: 2px solid rgba(88, 204, 8, 0.3);
  border-radius: 1.2rem;
  color: #ffffff;
  font-size: 1.8rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-input--with-prefix {
  padding-right: 7rem;
}

.form-input:focus {
  border-color: #58cc08;
  background: rgba(32, 47, 54, 0.95);
  box-shadow: 0 0 20px rgba(88, 204, 8, 0.3);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-error {
  color: #ff5722;
  font-size: 1.4rem;
  font-weight: 500;
  display: none;
  margin-top: -0.5rem;
}

.form-hint {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  margin-top: -0.5rem;
}

.input-toggle {
  position: absolute;
  left: 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
  z-index: 2;
}

.input-toggle:hover {
  color: #58cc08;
  transform: scale(1.1);
}

/* Password Strength */
.password-strength {
  margin-top: 1rem;
}

.password-strength__bar {
  width: 100%;
  height: 0.6rem;
  background: rgba(55, 70, 79, 0.5);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.password-strength__fill {
  height: 100%;
  width: 0%;
  background: #ff5722;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.password-strength__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  font-weight: 500;
}

/* Button */
.btn {
  padding: 1.8rem 3rem;
  background: linear-gradient(135deg, #58cc08 0%, #58a700 100%);
  color: #ffffff;
  border: none;
  border-radius: 1.2rem;
  font-size: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(88, 204, 8, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 204, 8, 0.5);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(88, 204, 8, 0.4);
}

.btn--primary {
  background: linear-gradient(135deg, #58cc08 0%, #58a700 100%);
}

/* Progress Indicator */
.progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 0;
  margin-top: auto;
}

.progress-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(88, 204, 8, 0.3);
  border: 2px solid rgba(88, 204, 8, 0.5);
  transition: all 0.3s ease;
}

.progress-dot--active {
  background: #58cc08;
  border-color: #58cc08;
  box-shadow: 0 0 15px rgba(88, 204, 8, 0.6);
  transform: scale(1.2);
}

/*
--------------------|📝 : Media Query
*/
@media screen and (max-width: 56.25em) {
  .profile-edit {
    padding: 1.5rem;
  }

  .profile-header__title {
    font-size: 2rem;
  }

  .avatar {
    width: 12rem;
    height: 12rem;
  }

  .avatar__speech {
    max-width: 25rem;
    padding: 1.2rem 2rem;
  }

  .avatar__speech p {
    font-size: 1.6rem;
  }

  .form-input {
    font-size: 1.6rem;
    padding: 1.4rem 1.2rem;
    padding-right: 4.5rem;
  }

  .form-input--with-prefix {
    padding-right: 6.5rem;
  }

  .btn {
    font-size: 1.8rem;
    padding: 1.6rem 2.5rem;
  }
}

@media screen and (max-width: 37.5em) {
  .profile-header {
    padding: 1.5rem 0;
  }

  .profile-header__back {
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
  }

  .profile-header__title {
    font-size: 1.8rem;
  }

  .profile-header__step {
    font-size: 1.4rem;
    padding: 0.6rem 1.2rem;
  }

  .avatar {
    width: 10rem;
    height: 10rem;
  }

  .avatar__speech {
    max-width: 22rem;
    padding: 1rem 1.5rem;
  }

  .avatar__speech p {
    font-size: 1.4rem;
  }

  .form-label {
    font-size: 1.6rem;
  }

  .form-input {
    font-size: 1.6rem;
    padding: 1.2rem 1rem;
    padding-right: 4rem;
  }

  .form-input--with-prefix {
    padding-right: 6rem;
  }

  .input-prefix {
    font-size: 1.6rem;
    right: 1.2rem;
  }

  .btn {
    font-size: 1.6rem;
    padding: 1.4rem 2rem;
  }
}

