* {
  box-sizing: border-box;
}

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  background: #0f0f10;

  --tgt-red: #e31e24;
  --tgt-orange: #f7941d;
  --tgt-yellow: #ffc90e;
  --tgt-dark: #141414;
  --tgt-gray: #6b6b6b;
  --tgt-gradient: linear-gradient(90deg, var(--tgt-red), var(--tgt-orange), var(--tgt-yellow));
}

body {
  margin: 0;
  min-height: 100vh;
}

.page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 12% 15%, rgba(227, 30, 36, 0.35), transparent 60%),
    radial-gradient(900px 650px at 88% 20%, rgba(247, 148, 29, 0.3), transparent 60%),
    radial-gradient(1000px 700px at 50% 100%, rgba(255, 201, 14, 0.22), transparent 60%),
    #0f0f10;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.page::before {
  width: 480px;
  height: 480px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, var(--tgt-red), transparent 70%);
  animation: float-a 14s ease-in-out infinite;
}

.page::after {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle, var(--tgt-yellow), transparent 70%);
  animation: float-b 16s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -25px) scale(1.05); }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 20px;
  padding: 34px 30px 30px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: rise-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: 20px 20px 0 0;
  background: var(--tgt-gradient);
  background-size: 200% 100%;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.header {
  text-align: center;
  margin-bottom: 26px;
}

.brand-logo {
  display: block;
  max-width: 260px;
  height: auto;
  margin: 0 auto 14px;
  animation: pop-in 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--tgt-dark);
}

.header p {
  margin: 0;
  color: var(--tgt-gray);
}

.field {
  margin-bottom: 17px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--tgt-dark);
}

input,
select {
  width: 100%;
  min-height: 49px;
  border: 1px solid #d8dbe0;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 16px;
  background: #fbfbfc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input:hover,
select:hover {
  border-color: #c7cbd2;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--tgt-orange);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(247, 148, 29, 0.18);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.45;
  margin: 20px 0;
  color: #333;
}

.checkbox input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--tgt-orange);
}

button {
  position: relative;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--tgt-gradient);
  background-size: 160% 100%;
  background-position: 0% 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(227, 30, 36, 0.28);
  transition: transform 0.15s ease, box-shadow 0.25s ease, background-position 0.4s ease;
}

button:hover:not(:disabled) {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(247, 148, 29, 0.38);
}

button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(227, 30, 36, 0.3);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.message {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.4;
  animation: slide-up 0.35s ease both;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  display: block;
  background: #fff8e6;
  color: #7a4a00;
  border: 1px solid var(--tgt-yellow);
  border-left: 4px solid var(--tgt-orange);
}

.message.error {
  display: block;
  background: #fdeceb;
  color: #8a1216;
  border: 1px solid #f3a6a6;
  border-left: 4px solid var(--tgt-red);
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .page {
    padding: 10px;
  }

  .card {
    padding: 26px 18px 22px;
    border-radius: 14px;
  }

  .brand-logo {
    max-width: 210px;
  }

  h1 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page::before,
  .page::after,
  .card,
  .card::before,
  .brand-logo,
  button,
  .message {
    animation: none !important;
    transition: none !important;
  }
}
