@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'poppins',sans-serif;
}





@media (max-width: 480px) {
    section {
        padding: 20px;
        background-position: center;
    }

    .form-box {
        width: 90%;
        height: auto;
        padding: 20px;
        border-radius: 15px;
    }

    h2 {
        font-size: 1.6em;
    }

    .inputbox {
        width: 100%;
        margin: 25px 0;
    }

    .inputbox input {
        height: 45px;
        font-size: 0.95em;
    }

    .inputbox ion-icon {
        font-size: 1.1em;
        top: 17px;
    }

    button {
        height: 38px;
        font-size: 0.9em;
    }

    .forget {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .register {
        font-size: 0.85em;
    }

    .messageDiv {
        font-size: 0.9em;
        padding: 8px 15px;
        margin: 10px auto;
    }
}




body {
  font-family: Arial, sans-serif;
  background: #EAF7FF;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.scanner-container {
  width: 360px;
  padding: 20px;
  text-align: center;
  background: white;
  border-radius: 14px;
  box-shadow: 0px 2px 12px rgba(0,0,0,0.15);
}

h2 {
  margin: 0;
}

#cameraBox {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  background: #EEE4D3;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 15px;
  text-align: center;
  color: #555;
}

button {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  background: #0A84FF;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #0077ee;
}

#result {
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
  color: #222;
}

video {
  width: 100%;
  height: auto;
  border-radius: 10px;
} 