html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  pointer-events: none;
  z-index: 0;
}

.regcontainer {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  background: rgba(255, 255, 255, 0.915);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.2);
  width: 500px;
  text-align: center;
}

h2 {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 5px;
  font-weight: 500;
  text-align: left;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.checkbox-container {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  font-family: 'Poppins';
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
}


button#nextBtn {
  margin-top: 25px;
  width: 100%;
  padding: 12px;
  background-color: #4CAF50;
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Poppins';
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.6;
  transition: opacity 0.3s;
}

button#nextBtn.enabled {
  cursor: pointer;
  opacity: 1;
}

.back-btn {
  margin-top: 15px;
  width: 100%;
  padding: 10px;
  background-color: #ccc;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins';
}

.back-btn:hover {
  background-color: #aaa;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.S2A-logo {
  position: fixed;
  width: 160px;         /* adjust size as you want */
  height: 80px;
  margin: 20px; /* space between image and heading */
  filter:drop-shadow(0px 0px 5px #4f4f4f)
}

.S2A-logo:hover{
  transform: scale(1.1);
   transition-duration: 1s;
   
}

.required {
  color: red;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 2px;
    display: block;
}

/* Custom Toast Styles */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    min-width: 300px;
}

.toast-header {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px 8px 0 0;
}

.toast-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
}

.toast-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

.toast-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
}

/* Add these to your existing Register.css */

/* Error message styles */
.alert {
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-success {
  background-color: #d1edff;
  border-color: #b3d9ff;
  color: #004085;
}

/* Form validation styles */
.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
  display: block;
}

/* Improve form spacing */
.form-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.form-control, .form-select {
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button improvements */
.btn-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  font-weight: 600;
  padding: 12px;
  transition: all 0.3s ease;
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-success:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  border: none;
  font-weight: 600;
  padding: 10px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #545b62);
  transform: translateY(-2px);
}

/* Card improvements */
.card {
  border: none;
  backdrop-filter: blur(10px);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .alert {
    font-size: 13px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .alert {
    font-size: 12px;
    padding: 8px;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .regcontainer {
    padding: 20px;
    width: 90%;
  }

  h1 {
    font-size: 1.5rem;
  }

  input, select {
    font-size: 13px;
    padding: 8px;
  }

  .S2A-logo {
    width: 130px;
    height: 65px;
  }
}

@media (max-width: 480px) {
  .regcontainer {
    padding: 15px;
    width: 95%;
  }

  h1 {
    font-size: 1.3rem;
  }

  input, select {
    font-size: 12px;
    padding: 7px;
  }

  .S2A-logo {
    width: 110px;
    height: 55px;
  }
}