<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Shorten URL - Shorty</title>
<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(900px 500px at 85% 75%, rgba(34,197,94,.18), transparent 55%),
    linear-gradient(180deg, #070b14, #0b1220 35%, #070b14);
}

form {
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  padding: 1rem;
  font-size: 1.1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
}

button {
  padding: 1rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(34,197,94,.75));
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover{
  filter: brightness(1.06);
  box-shadow: 0 16px 42px rgba(0,0,0,.42);
}
</style>
</head>
<body>
<form method="POST" action="/">
  <input type="url" name="url_str" placeholder="https://yourlongurl.com/here" required>
  <input type="hidden" name="csrf_token" value="{{ request.session.csrf_token }}">
  <button type="submit">Shorten</button>
</form>
</body>
</html>
