
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #050816;            
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}


.container {
  width: 100%;
  max-width: 600px;               
  margin: 1.5rem;
  background: #121528;             
  padding: 1.8rem 1.9rem;
  border-radius: 18px;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
}


h2 {
  margin: 0 0 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 400;
}


.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #f43f5e;      
  background: transparent;
  color: #f9fafb;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease;
}

.form-group textarea {
  border-radius: 12px;             
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #fb7185;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
  background-color: rgba(15, 23, 42, 0.75);
}


::placeholder {
  color: #6b7280;
  font-size: 0.8rem;
}

.inline-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #d1d5db;
}

.inline-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}


.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #d1d5db;
}


.checkbox-group input[type="checkbox"] {
  accent-color: #f43f5e;
}


.error-message {
  display: block;
  font-size: 0.7rem;
  color: #fca5a5;
  margin-top: 0.18rem;
}

.input-error {
  border-color: #f97373 !important;
}


.alert {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
}

.alert-error {
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid #f97373;
  color: #fecaca;
}

.alert-success {
  background: rgba(22, 163, 74, 0.22);
  border: 1px solid #4ade80;
  color: #bbf7d0;
}

.hidden {
  display: none;
}


button#submit-btn {
  width: 100%;
  padding: 0.65rem;
  margin-top: 0.6rem;
  border-radius: 999px;
  border: none;
  background: #f43f5e;           
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease,
              background-color 0.15s ease, opacity 0.1s;
}

button#submit-btn:hover:not(:disabled) {
  background: #fb7185;
  box-shadow: 0 18px 30px rgba(248, 113, 113, 0.35);
  transform: translateY(-1px);
}

button#submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}


.password-strength {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

#password-strength-label.weak {
  color: #f97373;
}

#password-strength-label.medium {
  color: #facc15;
}

#password-strength-label.strong {
  color: #4ade80;
}


@media (max-width: 480px) {
  .container {
    margin: 1.2rem;
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.25rem;
  }
}
