:root {
  --bg-0: hsl(254, 16%, 2%);
  --bg-1: hsl(258, 14%, 5%);
  --card-bg: rgba(15, 14, 24, 0.82);
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(10, 9, 18, 0.85);
  --input-border: rgba(255, 255, 255, 0.11);
  --input-error: #dc2626;
  --text-main: #f4f4f8;
  --text-muted: #8a8899;
  --accent: hsl(250, 66%, 54%);
  --accent-2: hsl(266, 68%, 44%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background-color: var(--bg-0);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow: hidden;
}

.Backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 540px at 26% 24%, hsla(250, 78%, 48%, 0.24), transparent 65%),
    radial-gradient(620px 500px at 78% 72%, hsla(276, 60%, 38%, 0.2), transparent 65%),
    radial-gradient(520px 440px at 50% 50%, hsla(304, 52%, 30%, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

.Page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.Card {
  width: min(520px, 100%);
  padding: 38px 39px 39px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}

.Title {
  margin: 0;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.Subtitle {
  margin: 7px 0 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.16s ease;
}

.Subtitle.IsError {
  color: #f87171;
}

.Subtitle.IsOk {
  color: #86efac;
}

.Input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  color: var(--text-main);
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.Input::placeholder {
  color: #6b697a;
}

.Input:focus {
  border-color: rgba(139, 92, 246, 0.72);
}

.Input.Error {
  border-color: var(--input-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.Button {
  margin-top: 16px;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px hsla(255, 72%, 50%, 0.34);
  transition: filter 0.16s ease, transform 0.14s ease, opacity 0.16s ease;
}

.Button:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.Button:disabled {
  opacity: 0.65;
  cursor: wait;
}
