
body {
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.hero {
  padding: 10vh 0 10vh 0;
  text-align: center;
  min-height: unset;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.form-card {
  background: #fff;
  padding: 32px 24px 28px 24px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.form-card.no-logo {
  padding-top: 32px;
}
.form-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.form-logo img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
h1 {
  margin-bottom: 24px;
  font-size: 2rem;
  color: #2d3a4a;
  font-weight: 700;
}
.input-group {
  margin-bottom: 18px;
}
input[type="email"], input[type="password"], input[name="displayName"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9fafb;
  transition: border 0.2s, box-shadow 0.2s;
  outline: none;
  display: block;
  margin: 0 auto;
}
input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #6366f133;
}
.btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
  display: block;
  margin: 0 auto;
}
.btn:hover {
  background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
}
.messages {
  margin: 20px 0 0 0;
  padding: 10px;
  border-radius: 5px;
}
.messages .error {
  color: #ff4d4d;
  background-color: #ffe6e6;
  border: 1px solid #ff4d4d;
  padding: 10px;
  border-radius: 5px;
}
.messages .success {
  color: #4caf50;
  background-color: #e6ffe6;
  border: 1px solid #4caf50;
  padding: 10px;
  border-radius: 5px;
}
.switch-link {
  margin-top: 18px;
  color: #6b7280;
  font-size: 0.98rem;
}
.switch-link a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.switch-link a:hover {
  color: #2563eb;
  text-decoration: underline;
}
