* {
  box-sizing: border-box;
}
body {
  font-family: 'Helvetica', sans-serif;
  background: linear-gradient(to right, #3498db, #2ecc71);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
.login-card {
  width: 90%;
  max-width: 320px;
  background: white;
  padding: 30px 20px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: popIn 0.8s ease-out;
}
@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.logo {
  display: block;
  margin: 0 auto -20px;
  height: 80px;
  width: 80px;
  background: url('https://sonwani.online/sonwani_l-removebg-preview.png') center center no-repeat;
  background-size: 50%;
  border-radius: 50%;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}
h1 {
  font-size: 24px;
  margin: 40px 0 20px;
  color: #2c3e50;
}
input {
  width: 100%;
  background: #ecf0f1;
  border: none;
  height: 40px;
  margin-bottom: 15px;
  border-radius: 5px;
  padding: 0 10px;
  font-size: 14px;
  color: #2c3e50;
  transition: background 0.3s;
}
input:focus {
  outline: none;
  background-color: #dfe6e9;
}
button {
  width: 100%;
  height: 40px;
  position: relative;
  overflow: hidden;
  border: none;
  background: #3498db;
  color: #ecf0f1;
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  border-bottom: 3px solid #2980b9;
  transition: background 0.3s ease;
}
button:hover {
  background: #2980b9;
}
.bottom-links {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.bottom-links a {
  font-size: 14px;
  text-decoration: none;
  color: #3498db;
  transition: color 0.3s ease;
}
.bottom-links a:hover {
  color: #2980b9;
}
a {
  color: #e74c3c;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #c0392b;
}
input.shake {
  animation: shake 0.3s;
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
  width: 100px;
  height: 100px;
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
