/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #111;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #111;
  width: 0%;
  transition: width 0.3s ease;
}

/* Steps */
.auth-step {
  display: none;
  flex-direction: column;
  gap: 1.2rem;
  animation: fadeSlide 0.4s ease;
}

.auth-step.active {
  display: flex;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Headings */
h1 {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.3px;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 12px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #111;
}

input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  padding: 0.9rem 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  letter-spacing: 0.3px;
  text-decoration: none;
  width: 100%;
  margin-top: 0.5rem;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.primary-btn {
  background: #111;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.primary-btn:hover { background: #333; }

.skip-btn {
  background: transparent;
  color: #555;
  box-shadow: none;
  border: 1px solid #ccc;
}

.skip-btn:hover {
  background: #f5f5f5;
}

/* ToS area */
.tos-box {
  text-align: left;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.tos-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.tos-label input {
  margin-top: 0.2rem;
}

.tos-placeholder {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #777;
}

/* Message */
.auth-message {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  min-height: 1.5em;
  color: #b00020;
}

/* Smooth page-load animation for the whole app */
body {
  animation: pageFadeIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}