@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --bg-overlay-top: rgba(12, 43, 33, 0.72);
  --bg-overlay-bottom: rgba(8, 26, 20, 0.88);
  --panel-bg: linear-gradient(160deg, rgba(12, 43, 33, 0.93) 0%, rgba(14, 50, 39, 0.9) 100%);
  --panel-border: rgba(45, 195, 178, 0.5);
  --text-main: #f3fff6;
  --text-soft: #d4f4de;
  --accent-cyan: #2dc3b2;
  --accent-magenta: #f3d667;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  background-image:
    linear-gradient(180deg, var(--bg-overlay-top) 0%, var(--bg-overlay-bottom) 100%),
    url("../img/abstract-gradient-circles-background-with-yellow-and-green-colors-vector.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

h1 {
  margin: 0 0 20px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #f4fff7;
}

form {
  width: min(92vw, 560px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 22px;
  background: var(--panel-bg);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px rgba(45, 195, 178, 0.2);
}

label {
  display: block;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 1.1rem;
}

input,
button {
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

input {
  margin-top: 7px;
  border: 1px solid rgba(83, 229, 255, 0.4);
  background: rgba(6, 11, 24, 0.88);
  color: var(--text-main);
  outline: none;
}

input:focus {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 0 2px rgba(243, 214, 103, 0.25);
}

button {
  margin-top: 10px;
  border: 1px solid rgba(243, 214, 103, 0.72);
  cursor: pointer;
  color: var(--text-main);
  font-weight: 700;
  background: linear-gradient(180deg, rgba(13, 42, 33, 0.95) 0%, rgba(47, 159, 98, 0.95) 100%);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(45, 195, 178, 0.3);
}

#result,
p:last-of-type {
  width: min(92vw, 560px);
  margin: 12px auto 0;
  border-radius: 12px;
  border: 1px solid rgba(83, 229, 255, 0.24);
  background: rgba(6, 10, 25, 0.82);
  padding: 12px;
}

#result {
  min-height: 44px;
  color: #d8e3ff;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(83, 229, 255, 0.45);
}

a:hover {
  color: #f3fff7;
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  h1 {
    font-size: 1.1rem;
  }

  form {
    border-radius: 14px;
    padding: 16px;
  }

  label {
    font-size: 1rem;
  }
}
