* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f7fafd;
}

.register {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.register .main {
  background: #fff;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  min-width: 320px;
  max-width: 350px;
  width: 100%;
  text-align: center;
}

.register .main h2 {
  margin-bottom: 1.5rem;
  color: #0078d7;
  font-size: 2rem;
  font-weight: 600;
}

.register label {
  display: block;
  text-align: left;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #333;
}

.register input[type="text"],
.register input[type="email"],
.register input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.2rem;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f5f8fa;
  transition: border 0.2s;
}

.register input[type="text"]:focus,
.register input[type="email"]:focus,
.register input[type="password"]:focus {
  border: 1.5px solid #0078d7;
  outline: none;
  background: #fff;
}

.register button[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  background: #0078d7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 1rem;
}

.register button[type="submit"]:hover {
  background: #005fa3;
}

.register p {
  margin-top: 1rem;
  font-size: 1rem;
}

.register a {
  color: #0078d7;
  text-decoration: none;
  font-weight: 500;
}

.register a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 500px) {
  .register .main {
    min-width: 0;
    padding: 1.2rem 0.5rem 1.5rem 0.5rem;
  }
}