:root {
  --blue: #323E8F;
  --yellow: #FFD515;
  --bg: #0B0F2B;
  --bg2: #10164A;
  --line: rgba(255, 255, 255, .14);
  --text: #F2F4FF;
  --muted: #C6CBF4;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
  --r: 22px;
  --focus: 0 0 0 4px rgba(255, 213, 21, .32);
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 720px at 10% 0%, rgba(50, 62, 143, .95), rgba(11, 15, 43, .12) 60%),
    radial-gradient(900px 620px at 100% 30%, rgba(255, 213, 21, .20), rgba(11, 15, 43, .12) 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
  margin: 0;
}

.corner {
  position: fixed;
  top: -120px;
  left: -120px;
  width: 320px;
  height: 320px;
  border-radius: 56px;
  background: linear-gradient(to bottom right, var(--blue) 0 62%, var(--yellow) 62% 100%);
  box-shadow: var(--shadow);
  opacity: .95;
  z-index: 0;
  pointer-events: none;
}

.loginBox {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(to bottom right, var(--blue) 0 62%, var(--yellow) 62% 100%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .30);
  flex: 0 0 auto;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: .2px;
  line-height: 1.1;
  color: #fff;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .2px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(11, 15, 43, .35);
  color: var(--text);
  outline: none;
  font-weight: 750;
  font-size: 15px;
}

.field input::placeholder {
  color: var(--muted);
  opacity: .7;
}

.field input:focus {
  box-shadow: var(--focus);
  border-color: rgba(255, 213, 21, .52);
}

.btn-legacy {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  font-weight: 950;
  font-size: 16px;
  letter-spacing: .2px;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}

.btn-legacy:hover {
  transform: translateY(-1px);
}

.btn-legacy:focus {
  outline: none;
  box-shadow: var(--focus);
}

.btn-legacy.primary {
  background: rgba(255, 213, 21, .98);
  color: #12163A;
  border: 1px solid rgba(255, 213, 21, .68);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}

.btn-legacy.primary:hover {
  background: rgba(255, 213, 21, 1);
}

.hint {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.hint code {
  background: rgba(255, 255, 255, .08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
}
