* {
    box-sizing: border-box;
}

body {
    height: 100vh;
    font-family: sans-serif;
    background: linear-gradient(135deg, #d4c191, #e19b78);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 0;
    margin: 0;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 300px;
    text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    outline: none;
}

button {
  background-color: dodgerblue;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: royalblue;
}

.error-message {
  color: #f87171;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

input.error {
  border: 2px solid #f87171;
  animation: shake 0.3s ease-in-out;
}