/* === GLOBAL BODY === */
body {
  font-family: "Poppins", sans-serif;
  background:
    linear-gradient(rgba(10, 42, 67, 0.8), rgba(10, 42, 67, 0.8)),
    url('../../Assets/img/BG_Hero.png') no-repeat center center/cover;
  color: #333;
  font-size: 15px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Overlay blur */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}


/* === CARD REGISTER === */
.card {
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  color: #333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  animation: fadeSlideDown 1s ease forwards;
}

@keyframes fadeSlideDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
  color: #0a2a43;
}


/* === FORM ELEMENTS === */
.form-label {
  color: #495057;
  font-size: 15px;
}

.form-text {
  font-size: 13px;
  color: #6c757d;
}

.form-control {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  color: #212529;
  font-size: 15px;
  padding: 10px;
  border-radius: 6px;
}

.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}


/* === BUTTON === */
.btn-primary {
  background-color: #007bff;
  border: none;
  font-weight: 600;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 6px;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn:focus {
  box-shadow: none;
}


/* === TOAST CUSTOM === */
.custom-toast {
  z-index: 9999 !important;
  min-width: 320px;
  max-width: 380px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
  animation: toastFade 0.35s ease;
}

.toast-success {
  background-color: #198754;
  color: #fff;
}

.toast-danger {
  background-color: #dc3545;
  color: #fff;
}

.custom-toast .toast-body {
  font-size: 14px;
  font-weight: 500;
}

.custom-toast .btn-close {
  filter: invert(1);
  opacity: 0.9;
}

@keyframes toastFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* === LINKS === */
.text-center a {
  color: #007bff;
}

.text-center a:hover {
  text-decoration: underline;
}


/* === LOGO === */
img[alt="Logo PT"] {
  max-width: 150px;
  display: block;
  margin: 0 auto 20px;
}


/* === TURNSTILE === */
.cf-turnstile {
  margin-bottom: 20px;
}


/* === SPINNER === */
#registerSpinner {
  width: 2rem;
  height: 2rem;
}


/* === RESPONSIVE MOBILE === */
@media (max-width: 480px) {

  body {
    font-size: 14px;
    padding: 12px;
  }

  .container {
    padding: 0;
  }

  .card {
    padding: 16px !important;
    border-radius: 10px;
    max-width: 340px;
  }

  .card-body {
    padding: 0;
  }

  .card h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .form-label {
    font-size: 13px;
  }

  .form-text {
    font-size: 11.5px;
  }

  .form-control {
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .btn-primary {
    font-size: 14px;
    padding: 10px;
    border-radius: 999px;
  }

  .text-center span,
  .text-center a {
    font-size: 12.5px;
  }

  img[alt="Logo PT"] {
    max-width: 110px;
  }

  .cf-turnstile {
    display: flex;
    justify-content: center;
    transform: scale(0.90);
  }

  #registerSpinner {
    width: 1.6rem;
    height: 1.6rem;
  }

  .custom-toast {
    width: 90%;
    min-width: unset;
  }

  .custom-toast .toast-body {
    font-size: 12.5px;
  }

}