* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4fdf7;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Card Container */
.register-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 30px 25px;
  border-radius: 12px;
  border: 1px solid #38b000;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.08);
}

.register-card h2 {
  color: #38b000;
  font-size: 24px;
  text-align: center;
  margin-bottom: 6px;
}

.register-card .subtitle {
  color: #64748b;
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
}

/* Form Groups */
.form-group {
  margin-bottom: 16px;
  
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: #38b000;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Avatar Upload Styling */
.avatar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;

}

.avatar-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #e6f4ea;
  border: 2px dashed #38b000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
  color: #38b000;
  font-size: 13px;
  font-weight: 600;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-btn-text {
  font-size: 13px;
  color: #16a34a;
  font-weight: 600;
}

.upload-btn-text:hover {
  text-decoration: underline;
}

.form-group input[type="file"] {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
}

/* Error Message */
.error-msg {
  display: none;
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: #38b000;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: #38b000;
}

/* Login Link */
.login-link {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 18px;
}

.login-link a {
  color: #38b000;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}
