/* Material 3 CSS-only (no MWC) */
body {
  font-family: 'Roboto', sans-serif;
  background: #fefbff;
  color: #1c1b1f;
  margin: 0;
  padding: 2rem;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

header {
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

header p {
  color: #49454f;
  margin: 0.5rem 0;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Textfield Material 3 */
.textfield {
  position: relative;
  display: inline-block;
}

.textfield input {
  width: 100%;
  padding: 16px 12px 8px;
  border: 1px solid #79747e;
  border-radius: 4px 4px 0 0;
  background: #fefbff;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.textfield input:focus {
  border-color: #6750a4;
}

.textfield span {
  position: absolute;
  left: 12px;
  top: 16px;
  font-size: 16px;
  color: #49454f;
  pointer-events: none;
  transition: all 0.2s;
}

.textfield input:focus + span,
.textfield input:not(:placeholder-shown) + span {
  top: 4px;
  font-size: 12px;
  color: #6750a4;
}

/* Select Material 3 */
.select {
  position: relative;
  display: inline-block;
}

.select select {
  width: 100%;
  padding: 16px 12px 8px;
  border: 1px solid #79747e;
  border-radius: 4px 4px 0 0;
  background: #fefbff;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.select select:focus {
  border-color: #6750a4;
}

.select span {
  position: absolute;
  left: 12px;
  top: 16px;
  font-size: 16px;
  color: #49454f;
  pointer-events: none;
  transition: all 0.2s;
}

.select select:focus + span,
.select select:valid + span {
  top: 4px;
  font-size: 12px;
  color: #6750a4;
}

/* Buttons Material 3 */
button {
  padding: 10px 24px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #6750a4;
  color: #fff;
}

.btn-primary:hover {
  background: #5238a0;
}

.btn-secondary {
  background: transparent;
  color: #6750a4;
  border: 1px solid #6750a4;
}

.btn-secondary:hover {
  background: #e8def8;
}

p {
  text-align: center;
  color: #49454f;
}

a {
  color: #6750a4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Progress */
.progress {
  height: 4px;
  background: #e7e0ec;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress::after {
  content: '';
  display: block;
  height: 100%;
  background: #6750a4;
  animation: progress 1.5s infinite;
}

@keyframes progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 1rem;
}

.alert[style*="error"] {
  background: #ffdad6;
  color: #ba1a1a;
}

.alert[style*="success"] {
  background: #cefacd;
  color: #146c2e;
}
