@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1e1f23;
  --muted: #6b7280;
  --line: #e4e7ec;
  --accent: #2f6fed;
  --accent-soft: #e6eeff;
  --shadow: 0 20px 60px rgba(20, 24, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", "SF Pro Display", system-ui, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fdfdfd 0%, #eff2f8 45%, #f4f5f7 100%);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 96px;
  max-width: 960px;
  margin: 0 auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.title-block {
  display: block;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(20, 24, 38, 0.18);
}

.app-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0 0 4px;
}

h1 {
  font-size: clamp(2.1rem, 2vw + 2rem, 3rem);
  margin: 0;
}

.subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.segmented-btn {
  border: none;
  padding: 10px 18px;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.segmented-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

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

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1rem;
}

button {
  font: inherit;
}

.primary {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.ghost {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.oauth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.apple {
  border: 1px solid #111827;
  background: #111827;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.helper {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.app-main h2 {
  margin-top: 0;
}

.tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px 8px 18px;
  backdrop-filter: blur(12px);
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.is-active {
  display: block;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 24px 16px 100px;
  }

  .card {
    padding: 20px;
  }
}
