*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3a8f 0%, #2952cc 40%, #3b6ef5 100%);
  padding: 20px;
}

.card {
  background: #f0f1f8;
  border-radius: 20px;
  padding: 48px 44px 44px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 64px rgba(10,30,100,0.22);
}

/* Logo */
.logo-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #dde1f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.logo-wrap svg { width: 36px; height: 36px; }

h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #14184a;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  text-align: center;
}
.subtitle {
  font-size: 0.97rem;
  color: #6b708c;
  margin-bottom: 32px;
}

/* Inputs */
.input-group {
  width: 100%;
  margin-bottom: 16px;
  position: relative;
}
.input-group .icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9da3be;
  display: flex;
}
.input-group input {
  width: 100%;
  padding: 15px 44px 15px 44px;
  border: 1.5px solid #e2e4f0;
  border-radius: 12px;
  background: #f8f9fd;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #14184a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input::placeholder { color: #9da3be; }
.input-group input:focus {
  border-color: #3b6ef5;
  box-shadow: 0 0 0 3px rgba(59,110,245,0.12);
  background: #fff;
}
.toggle-pw {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #9da3be;
  background: none;
  border: none;
  display: flex;
  padding: 0;
}

/* Sign Up Button */
.btn-signup {
  width: 100%;
  padding: 16px;
  background: #3d4f8a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 26px;
  letter-spacing: 0.2px;
}
.btn-signup:hover { background: #2d3d73; }
.btn-signup:active { transform: scale(0.985); }

/* Footer */
.footer-row {
  font-size: 0.95rem;
  color: #6b708c;
}
.footer-row a {
  color: #3b6ef5;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}
.footer-row a:hover { text-decoration: underline; }

/* Error message */
.signup-error {
  color: #e03e3e;
  font-size: 0.9rem;
  margin: -10px 0 14px;
  width: 100%;
  text-align: center;
}

/* Success message */
.signup-success {
  color: #1a8a3e;
  font-size: 0.9rem;
  margin: -10px 0 14px;
  width: 100%;
  text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
  .card { padding: 36px 22px 32px; }
  h1 { font-size: 1.5rem; }
}

@media (max-width: 360px) {
  .card { padding: 28px 14px 24px; border-radius: 14px; }
  h1 { font-size: 1.3rem; }
  .input-group input { font-size: 16px; padding: 13px 44px; }
  .btn-signup { font-size: 1rem; padding: 14px; }
}
