body {
  background: radial-gradient(328px at 2.9% 15%, rgb(191, 224, 251) 0%, rgb(232, 233, 251) 25.8%, rgb(252, 239, 250) 50.8%, rgb(234, 251, 251) 77.6%, rgb(240, 251, 244) 100.7%);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  color: #dc0000;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: #ff0000;
  text-decoration: underline;
}

header {
  text-align: center;
  margin: 60px 0 40px;
}

h1 {
  font-weight: 700;
  font-size: 42px;
  line-height: 1.3;
  color: #e84a5f;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

main {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

form {
  padding: 30px;
  background-color: #1e1e1e;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  border: 2px solid #dc0000;
  position: relative;
}

form::before {
  content: "🌹";
  font-size: 24px;
  margin-right: 15px;
}

input[type="text"] {
  padding: 16px 20px;
  border: 2px solid #444;
  background: #2b2b2b;
  width: 60%;
  font-size: 16px;
  border-radius: 8px;
  line-height: 20px;
  color: #ffffff;
}

input[type="text"]:focus {
  outline: none;
  border-color: #dc0000;
  background: #333;
}

input[type="text"]::placeholder {
  color: #888;
}

input[type="submit"] {
  margin-left: 12px;
  background: #dc0000;
  color: white;
  border: none;
  width: 40%;
  font-size: 14px;
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="submit"]:hover {
  background: #ff0000;
  box-shadow: 0 0 20px rgba(220, 0, 0, 0.6);
}

input[type="submit"]:disabled {
  background: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

input[type="submit"]:disabled:hover {
  background: #666;
  box-shadow: none;
}

.poem {
  font-size: 18px;
  background-color: #1e1e1e;
  padding: 30px;
  line-height: 1.8;
  border-left: 4px solid #ffd700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  color: #e0e0e0;
  font-style: italic;
  position: relative;
}

.poem::before {
  content: "✨";
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
}

.poem::after {
  content: "✨";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
}

.poem.loading {
  opacity: 0.7;
  font-style: normal;
}

footer {
  text-align: center;
  font-size: 14px;
  margin: 50px 0 30px;
  color: #999;
}