@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin-top: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to right, #e2e2e2, #c9d6ff);
    color: #333;
}



.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9ff;
  padding: 12px 40px;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  opacity: 95%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.brand {
  font-size: 1.4rem;
  font-weight: 600;
  color: #003b7a;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.auth-links a {
  text-decoration: none;
  font-weight: 600;
  color: #004080;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #007bff;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-icons a {
  color: #004080;
  font-size: 1.4rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-icons a:hover {
  color: #007bff;
}

.icon-wrapper {
  position: relative;
}

.icon-wrapper::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #004080;
  color: white;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.icon-wrapper:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: #1f1f1f;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 6px 8px;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.25s ease-in-out;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.85;
}

.nav-toggle:hover {
  transform: scale(1.1);
  background: #f0f4ff;
  opacity: 100%;
}

.nav-toggle i {
  font-size: 1.2rem;
}

.header.hide {
  transform: translateY(-100%);
  opacity: 0;
}


.container{
    margin: 0 15px;
}

.form-box {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.form-box.active{
    display: block;
}

h2 {
    font-size: 34px;
    text-align: center;
    margin-bottom: 20px;
}

input,
select {
    width: 100%;
    padding: 12px;
    background: #eee;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

button {
    width: 100%;
    padding: 12px;
    background: #7494ec;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 20px;
    transition: 0.5s;
}

button:hover {
    background: #6884d3;
}

p {
    font-size: 14.5px;
    text-align: center;
    margin-bottom: 10px;
}

p a{
    color: #7494ec;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

.info-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(30, 30, 30, 0.85);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.3s ease;
}
.info-bar:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.9);
}

/* camera */
.camera-wrapper {
  background: #ffffff; /* match login form background */
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  width: 360px;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  animation: fadeIn 0.4s ease-in-out;
  text-align: center;
  margin-left: 40px; /* distance between login and camera */
}

.camera-wrapper h3.camera-title {
  font-size: 1.1rem;
  color: #0a0a0a;
  margin-bottom: 10px;
}

#video {
  width: 100%;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.camera-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #555;
}

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