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

html, body { height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #2c5364 0%, #203a43 50%, #0f2027 100%);
  overflow-x: hidden;
}

/* Soft blurred background image layer */
.bg-layer {
  position: fixed;
  inset: -20px;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px) brightness(0.65) saturate(1.1);
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

/* Form card with 10% blur (frosted glass) */
.form-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.55);
}

.icon-badge {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #2563eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
}

.letter-spacing { letter-spacing: .16em; }

/* Inputs */
.form-control,
.form-select,
.input-group-text {
  border-color: #e2e8f0;
  transition: border-color .2s ease, box-shadow .2s ease;
  font-size: .95rem;
}
.input-group-text {
  background: #f8fafc;
  color: #64748b;
  min-width: 42px;
  justify-content: center;
}
.input-group .form-control:focus,
.input-group .form-select:focus { box-shadow: none; border-color: #2563eb; }
.input-group:focus-within .input-group-text { border-color: #2563eb; color: #2563eb; }
.form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
}

.form-label { font-size: .88rem; color: #1e293b; margin-bottom: .35rem; }

/* Feedback */
.invalid-feedback:empty { display: none !important; }
.form-control.is-invalid,
.form-select.is-invalid { background-image: none; }

.form-check-input:checked { background-color: #2563eb; border-color: #2563eb; }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15); border-color: #2563eb; }

/* Alerts */
#alertBox { font-size: .9rem; border-radius: 12px; border-width: 1px; }

/* Button */
.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  border-radius: 12px;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 10px 25px -10px rgba(37, 99, 235, .8);
}
.btn-primary:active:not(:disabled) { transform: scale(.99); }
.btn-primary:disabled { opacity: .7; }

/* Responsive */
@media (max-width: 576px) {
  .form-card { border-radius: 16px; }
  .icon-badge { width: 56px; height: 56px; font-size: 26px; }
  .card-body { padding: 1.5rem !important; }
  .form-control, .form-select { font-size: .9rem; }
}