:root {
  --bg: #f1efe8;
  --ink: #131313;
  --card: rgba(255, 255, 255, 0.84);
  --line: rgba(19, 19, 19, 0.16);
  --accent: #131313;
  --accent-2: #1e8767;
  --ok: #0f6c4f;
  --err: #9b1c1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, #fce9c8 0%, transparent 34%),
    radial-gradient(circle at 88% 22%, #d9f4ea 0%, transparent 36%),
    var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(48px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
}

body::before {
  top: -120px;
  right: -80px;
  background: #e26a37;
  animation: driftA 9s ease-in-out infinite;
}

body::after {
  bottom: -110px;
  left: -70px;
  background: #2a8a6b;
  animation: driftB 11s ease-in-out infinite;
}

.shell {
  width: min(720px, 92vw);
  margin: 0 auto;
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.11);
  padding: 20px;
  animation: cardIn 520ms ease both;
}

form {
  display: grid;
  gap: 12px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.brand {
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(19, 19, 19, 0.6);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.column {
  display: grid;
  gap: 10px;
}

input,
select,
button {
  border-radius: 12px;
  border: 1px solid var(--line);
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.96);
}

input:focus,
select:focus {
  outline: 2px solid color-mix(in srgb, var(--accent-2) 28%, white);
  border-color: transparent;
}

button {
  padding: 12px 16px;
  border: none;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(120deg, var(--accent), #2e2e2e);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

button:disabled {
  opacity: 0.65;
  cursor: progress;
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 7px 12px;
  font-size: 12px;
  box-shadow: none;
}

button.ghost:hover {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.8);
}

.result {
  margin-top: 6px;
  min-height: 22px;
  font-size: 12px;
  white-space: pre-line;
}

.result.ok {
  color: var(--ok);
}

.result.err {
  color: var(--err);
}

.pwd-wrap {
  margin-top: 2px;
}

.fade-slide-enter-active,
.fade-slide-leave-active {
  transition: opacity 220ms ease, transform 220ms ease;
}

.fade-slide-enter-from,
.fade-slide-leave-to {
  opacity: 0;
  transform: translateY(-4px);
}

.panel-swap-enter-active,
.panel-swap-leave-active {
  transition: opacity 220ms ease, transform 220ms ease;
}

.panel-swap-enter-from,
.panel-swap-leave-to {
  opacity: 0;
  transform: translateY(6px);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes driftA {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, 18px);
  }
}

@keyframes driftB {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, -12px);
  }
}

@media (max-width: 720px) {
  .card {
    padding: 14px;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .topline {
    margin-bottom: 12px;
  }

  .brand {
    font-size: 11px;
  }

  .topline .ghost {
    padding: 7px 10px;
  }
}
