* {
  box-sizing: border-box;
  font-family: "Vazir", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: radial-gradient(circle at top right, #fdfbfb 0%, #ebedee 100%); */
  /* background-image: url("./image/background.jpg"); */
  background: #d7f8fa;
  background: linear-gradient(182deg,rgba(215, 248, 250, 1) 16%, rgba(97, 207, 205, 1) 52%, rgba(36, 112, 212, 0.44) 100%);
  background-size: cover;
}

.animated-border {
  position: relative;
  padding: 4px;
  border-radius: 25px;
  background: linear-gradient(270deg, #00c6ff, #0072ff, #ff4e50, #f9d423);
  background-size: 600% 600%;
  animation: borderAnim 8s ease infinite;
  width: 95%;
  max-width: 520px;
}

@keyframes borderAnim {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.login-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 60px 50px;
  text-align: right;
  position: relative;
}

.login-box h2 {
  /* margin-bottom: 40px; */
  color: #333;
  font-size: 28px;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: bold;
  font-size: 16px;
}

.form-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.input-group {
  margin-bottom: 30px;
}

.input-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 17px;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px #007bff40;
  outline: none;
}

.login-box button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #36d1dc, #5b86e5);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-box button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(0, 123, 255, 0.3);
}

.timer {
  margin-top: 10px;
  text-align: center;
  font-size: 16px;
  color: #666;
}

.message-box {
  position: absolute;
  top: -55px;
  left: 20px;
  right: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  display: none;
}

.message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
  .login-box {
    padding: 40px 25px;
  }

  .login-box h2 {
    font-size: 22px;
  }

  .input-group input,
  .login-box button {
    font-size: 15px;
    padding: 14px;
  }

  label {
    font-size: 14px;
  }

  .timer {
    font-size: 14px;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

}

