/* Shared authentication styling (Material-inspired) */
.auth-shell {
  display: flex;
  justify-content: center;
  padding: 40px 16px 64px;
}

.auth-card-signup {
  width: 100%;
  max-width: 960px;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgb(240, 240, 240);
}

@media (min-width: 640px) {
  .auth-card-signup {
    padding: 40px;
  }
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: rgb(255, 255, 255);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgb(240, 240, 240);
}

@media (min-width: 640px) {
  .auth-card {
    padding: 40px;
  }
}

.auth-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.auth-logo {
  height: 40px;
}

.auth-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
}

.auth-subtitle {
  margin: 0;
  color: #4a4a4a;
  font-size: 15px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 22px;
  margin-bottom: 18px;
}

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

.md-label {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #555;
  text-transform: uppercase;
  font-weight: 500;
  padding-left: 5px;
}

.md-input {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background: #fafafa;
}

.md-input:focus {
  outline: none;
  border-color: #6750a4;
}

.md-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.md-button {
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.md-button.primary {
  background: rgb(39, 88, 208);
  color: #fff;
}

.md-button.ghost {
  background: transparent;
  color: rgb(39, 88, 208);
  border: 1px solid #dcdcdc;
}

.auth-hint {
  margin-top: 12px;
  font-size: 14px;
  color: #4a4a4a;
}

.auth-hint a {
  color: #6750a4;
  font-weight: 700;
}
