/* Family Check-In - Global Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 1.5rem;
  color: #5928ED;
  display: inline-block;
  margin-right: 2rem;
}

nav {
  display: inline-block;
}

nav a {
  color: #666;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #5928ED;
}

/* Main content */
main {
  min-height: calc(100vh - 200px);
}

section {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #444;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 3rem 2rem;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.button.primary {
  background: #5928ED;
  color: #fff;
}

.button.primary:hover {
  background: #4820C0;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(89, 40, 237, 0.3);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

/* Setup section */
.setup ol {
  margin-left: 0;
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.setup li {
  margin-bottom: 0.75rem;
}

.setup ul {
  margin-left: 0;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.setup ul li {
  margin-bottom: 0.5rem;
}

/* Auth flow */
.auth-flow {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.step {
  margin: 2rem 0;
}

input[type="text"] {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  margin: 1rem 0;
  font-family: monospace;
  letter-spacing: 0.2em;
}

input[type="text"]:focus {
  outline: none;
  border-color: #5928ED;
}

.error {
  color: #d32f2f;
  padding: 1rem;
  background: #ffebee;
  border-radius: 6px;
  margin-top: 1rem;
}

.error-box {
  padding: 2rem;
  background: #ffebee;
  border-radius: 8px;
  color: #c62828;
}

.success {
  text-align: center;
  padding: 2rem;
}

.success svg {
  margin-bottom: 1rem;
}

.success h3 {
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.success p {
  color: #666;
}

/* Spinner */
.spinner {
  margin: 2rem auto;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5928ED;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
footer {
  background: #fff;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  color: #666;
}

footer a {
  color: #5928ED;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    display: block;
    margin-bottom: 0.5rem;
  }

  nav {
    display: block;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
