:root {
  --bg: #05030a;
  --panel: rgba(22, 20, 30, 0.9);
  --panel-2: rgba(34, 30, 46, 0.76);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f3ff;
  --muted: #9f98ad;
  --purple: #8b57d8;
  --purple-2: #b188ff;
  --green: #55d878;
  --red: #ff6b8a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(139, 87, 216, 0.22), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(85, 216, 120, 0.11), transparent 28%),
    linear-gradient(145deg, #07040d 0%, #090512 50%, #020106 100%);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: var(--text);
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 34px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.logo {
  font-weight: 1000;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo span {
  color: var(--purple-2);
  margin-left: 8px;
}

.topbar p,
.login-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel,
.login-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

h1,
h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.panel-head span {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.drop {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 24px;
  border: 1px dashed rgba(177, 136, 255, 0.45);
  border-radius: 16px;
  background: rgba(139, 87, 216, 0.08);
  text-align: center;
  transition: 180ms ease;
}

.drop:hover,
.drop.drag {
  border-color: var(--purple-2);
  transform: translateY(-2px);
}

.drop input {
  display: none;
}

.drop strong {
  font-size: 24px;
}

.drop small {
  display: block;
  max-width: 360px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.text-input,
.login-card input {
  width: 100%;
  height: 50px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: 0;
  padding: 0 16px;
  color: var(--text);
  background: rgba(3, 2, 8, 0.62);
  transition: 180ms ease;
}

.text-input:focus,
.login-card input:focus {
  border-color: var(--purple-2);
  box-shadow: 0 0 0 4px rgba(139, 87, 216, 0.18);
}

.mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 0;
}

.mode {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.mode input {
  position: absolute;
  opacity: 0;
}

.mode:has(input:checked) {
  color: var(--text);
  border-color: rgba(177, 136, 255, 0.9);
  background: rgba(139, 87, 216, 0.34);
}

.primary,
.ghost,
.copy {
  height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 1000;
}

.primary {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--purple), #6b48b8);
  box-shadow: 0 12px 30px rgba(139, 87, 216, 0.28);
}

.ghost,
.copy {
  background: rgba(255, 255, 255, 0.08);
}

.result {
  min-height: 28px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
  word-break: break-word;
}

.result a,
.job a {
  color: var(--green);
  text-decoration: none;
}

.jobs-panel {
  margin-top: 18px;
}

.jobs {
  display: grid;
  gap: 12px;
}

.empty {
  color: var(--muted);
  font-weight: 800;
}

.job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.job-title {
  font-weight: 1000;
}

.job-meta {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.bar {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.bar span {
  display: block;
  height: 100%;
  width: var(--progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--green));
  transition: width 220ms ease;
}

.error {
  min-height: 24px;
  color: var(--red);
  font-weight: 900;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(460px, 100%);
  padding: 34px;
}

.login-card .logo {
  font-size: 46px;
}

.login-card form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.login-card button {
  height: 50px;
  border-radius: 12px;
  background: var(--purple);
  font-weight: 1000;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 24px, 1180px);
    padding: 22px 0;
  }

  .topbar,
  .panel-head,
  .job {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid,
  .mode-row {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
  }
}
