:root {
  --bg: #edf2f7;
  --panel: #ffffff;
  --border: #d7dfeb;
  --text: #152033;
  --muted: #66758c;
  --primary: #0f4c81;
  --primary-dark: #0a365c;
  --success: #0f9d58;
  --danger: #c0392b;
  --warning: #d97706;
  --shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 76, 129, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(15, 157, 88, 0.12), transparent 20%),
    var(--bg);
}

button,
input,
a {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.hero-panel {
  padding: 44px 36px;
  color: #f6f9ff;
  background:
    linear-gradient(165deg, rgba(6, 23, 56, 0.98), rgba(15, 76, 129, 0.96) 58%, rgba(34, 124, 174, 0.92)),
    #081221;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-badge {
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.78rem;
}

.hero-panel h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.08;
}

.hero-panel p {
  margin: 0;
  color: rgba(246, 249, 255, 0.8);
  line-height: 1.75;
}

.hero-points {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.hero-point {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.point-title {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.point-text {
  color: rgba(246, 249, 255, 0.74);
  line-height: 1.6;
  font-size: 0.95rem;
}

.workspace-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.panel {
  width: min(720px, 100%);
  background: var(--panel);
  border: 1px solid rgba(215, 223, 235, 0.92);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px;
}

.panel-header {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.panel-header h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

.company-meta {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-box {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: #f8fafc;
  margin-bottom: 18px;
}

.status-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.status-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.status-box.loading {
  border-color: rgba(15, 76, 129, 0.22);
  background: rgba(15, 76, 129, 0.06);
}

.status-box.success {
  border-color: rgba(15, 157, 88, 0.24);
  background: rgba(15, 157, 88, 0.08);
}

.status-box.error {
  border-color: rgba(192, 57, 43, 0.22);
  background: rgba(192, 57, 43, 0.08);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: rgba(15, 76, 129, 0.6);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

.field input[readonly] {
  background: #f7f9fc;
  color: var(--muted);
}

.inline-message {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  line-height: 1.7;
  font-size: 0.94rem;
}

.inline-message.error {
  background: rgba(192, 57, 43, 0.08);
  color: var(--danger);
}

.inline-message.success {
  background: rgba(15, 157, 88, 0.08);
  color: var(--success);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--primary), #1b699d);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 76, 129, 0.18);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.ghost-link {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.hidden {
  display: none !important;
}

@media (max-width: 960px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }

  .workspace-shell {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .hero-panel,
  .panel {
    padding: 22px;
  }

  .panel-header h2 {
    font-size: 1.75rem;
  }

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

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }
}
