:root {
  --brand: #00c8b4;
  --brand-hover: #00b3a1;
  --text: #111827;
  --muted: #4b5563;
  --hint: #9ca3af;
  --danger: #dc2626;
  --ok: #16a34a;
  --border: #d1d5db;
  --bg: #f9fafb;
  --panel: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

#app {
  min-height: 100dvh;
}

.shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.panel {
  width: 100%;
  max-width: 28rem;
  background: var(--panel);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.panel-wide {
  max-width: 32rem;
}

.center {
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 180px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header-row h1 {
  margin: 0;
  font-size: 1.5rem;
}

.company-banner {
  height: 2.5rem;
  max-width: 8rem;
  object-fit: contain;
}

h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

.subtitle {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.req {
  color: var(--danger);
  margin-left: 0.25rem;
}

input[type='text'],
input[type='email'],
input[type='password'],
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.email-split {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.email-split input {
  border: 0;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.email-split .domain {
  padding: 0.75rem 0.5rem;
  background: var(--bg);
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 2.75rem;
}

.eye {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
}

.hint-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
}

.hint-list li.ok {
  color: var(--ok);
}

.hint-list li.bad {
  color: var(--danger);
}

.error {
  color: var(--danger);
  font-size: 0.75rem;
  margin: 0.25rem 0 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted);
}

.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.terms-link {
  font-weight: 600;
  text-decoration: none;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
  transition: filter 120ms ease;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-dark {
  background: #111827;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-wrap {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00c8b415;
  color: var(--brand);
}

.icon-wrap svg {
  width: 2rem;
  height: 2rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.step {
  display: flex;
  gap: 1rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem;
}

.step-action {
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: #00c8b415;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step h3 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 9999px;
  padding: 0.15rem 0.45rem;
  margin-left: 0.35rem;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand);
}

.muted-label {
  color: var(--hint);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  background: #111827;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  z-index: 20;
  box-shadow: var(--shadow);
}

.toast.error {
  background: #991b1b;
}

.toast.ok {
  background: #065f46;
}

.panel-feedback {
  max-width: 42rem;
  padding: 0;
  overflow: hidden;
}

.feedback-hero {
  background: #111827;
  color: #fff;
  padding: 2.25rem 1.5rem 2rem;
  position: relative;
}

.feedback-hero h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}

.feedback-hero p {
  margin: 0.75rem 0 0;
  color: #d1d5db;
  font-size: 0.875rem;
}

.feedback-body {
  padding: 1.5rem;
}

.field-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.category-btn {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.category-btn.selected {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 2px #1e3a8a;
}

.hint-text {
  margin: 0.5rem 0 1rem;
  font-size: 0.75rem;
  color: var(--hint);
}

textarea {
  width: 100%;
  min-height: 10rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font: inherit;
  resize: none;
}
