* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CARD */
.card {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 24px;
  width: 320px;
  color: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: floatIn 0.6s ease;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.title {
  text-align: center;
  margin-bottom: 25px;
}

/* FLOATING INPUTS */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #666;
  font-size: 14px;
  transition: 0.25s;
  pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -15px;
  left: 10px;
  font-size: 13px;
  color: white;
}

/* PASSWORD TOGGLE */
.password-group {
  position: relative;
}

#togglePassword {
  position: absolute;
  right: 12px;
  top: 14px;
  cursor: pointer;
}

/* REMEMBER */
.remember {
  font-size: 14px;
}

/* BUTTON */
button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: white;
  color: #667eea;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.04);
}

/* LOADER */
.loader {
  width: 18px;
  height: 18px;
  border: 3px solid transparent;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

button.loading .loader {
  display: block;
}

button.loading .btn-text {
  opacity: 0.6;
}

#message {
  text-align: center;
  margin-top: 10px;
}

/* SHAKE ANIMATION */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.card.shake {
  animation: shake 0.4s ease;
}