* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background: url('https://images.unsplash.com/photo-1662452996692-11c2439432fa?q=80&w=1471&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center;
  background-size: cover;
  position: relative;
  background-attachment: fixed;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

.register-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.register-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.register-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  font-size: 14px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.form-label {
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 8px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.form-control {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px 45px 12px 15px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  pointer-events: none;
}

.face-capture-section {
  background: rgba(38, 102, 127, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.face-capture-section h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.face-capture-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  margin-bottom: 15px;
}

.face-preview {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 15px;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#camera, #canvas {
  width: 100%;
  height: auto;
  display: block;
}

#canvas {
  display: none;
}

.face-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 250px;
  border: 3px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.btn-capture {
  background: rgba(255, 255, 255, 0.9);
  color: #26667F;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 5px;
  cursor: pointer;
}

.btn-capture:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-register {
  width: 100%;
  background: #26667F;
  color: #ffffff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(38, 102, 127, 0.4);
  cursor: pointer;
}

.btn-register:hover {
  background: #1e4f63;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 102, 127, 0.6);
}

.btn-register:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.back-to-login {
  text-align: center;
  margin-top: 20px;
}

.back-to-login a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.back-to-login a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.face-status {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}

.face-status.pending {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.face-status.success {
  background: rgba(76, 175, 80, 0.9);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.alert {
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

select.form-control option {
  background: rgba(38, 102, 127, 0.95);
  color: white;
  padding: 10px;
}

.required {
  color: #ff6b6b;
}

.upload-section {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.upload-preview {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.upload-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.upload-placeholder i {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.upload-placeholder p {
  margin: 5px 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.upload-placeholder small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.btn-upload {
  background: rgba(255, 255, 255, 0.9);
  color: #26667F;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 5px;
  cursor: pointer;
}

.btn-upload:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 576px) {
  .register-card {
    padding: 30px 20px;
  }
  
  .register-title {
    font-size: 26px;
  }
  
  .register-container {
    padding: 20px 10px;
  }
  
  .face-capture-section {
    padding: 20px 15px;
  }
}