* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f4f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}

.card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 28px;
}

.site-footer {
  margin-top: 16px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.tab-btn {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: #111827;
  border-bottom-color: #f97316;
}

h1 {
  font-size: 20px;
  margin: 0 0 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 14px 0 6px;
}

label.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  margin: 14px 0 0;
  cursor: pointer;
}

label.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #f97316;
  cursor: pointer;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
}

input:focus {
  border-color: #f97316;
}

button[type="submit"],
button.primary-btn {
  width: 100%;
  margin-top: 20px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #f97316;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button[type="submit"]:disabled,
button.primary-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

button[type="submit"]:hover:not(:disabled),
button.primary-btn:hover:not(:disabled) {
  background: #ea580c;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.option-list button {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
}

.option-list button:hover {
  background: #f3f4f6;
  border-color: #f97316;
}

.link-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px 0;
  background: none;
  border: none;
  color: #f97316;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}

.link-btn:hover {
  text-decoration: underline;
}

.hint {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px;
}

.panel.hidden,
.step,
.hidden {
  display: none;
}

.panel:not(.hidden) {
  display: block;
}

.step.active {
  display: block;
}

.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

.message {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

#account-panel p {
  font-size: 14px;
}

#logout-btn {
  margin-top: 16px;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
}
