@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  padding: 20px;
}

.login-box {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform-origin: center;
  animation: appear 0.8s ease-out;
}

@keyframes appear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.avatar svg {
  width: 100%;
  height: 100%;
}

.head {
  fill: #ff6b6b;
  animation: bounce 2s infinite;
}

.body {
  fill: #4ecdc4;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  border-bottom: 2px solid #ddd;
  transition: 0.3s;
}

label {
  position: absolute;
  top: 10px;
  right: 0;
  color: #999;
  transition: 0.3s;
  pointer-events: none;
}

.line {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: #4ecdc4;
  transition: 0.3s;
}

input:focus ~ .line,
input:valid ~ .line {
  width: 100%;
}

input:focus ~ label,
input:valid ~ label {
  top: -20px;
  font-size: 12px;
  color: #4ecdc4;
}

button {
  width: 100%;
  padding: 12px;
  background: #4ecdc4;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

button:hover {
  background: #45b7ae;
  transform: translateY(-2px);
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}