/* Google Font for Modern Look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1a 100%);
  overflow: hidden;
  position: relative;
}

/* Background Glowing Elements */
body::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(79, 172, 254, 0.2);
  filter: blur(100px);
  z-index: -1;
}

.container {
  z-index: 10;
}

/* Glassmorphism Box */
.login-box {
  width: 380px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Face Scan Decoration (Visual Element) */
.login-box::before {
  content: '👤';
  display: block;
  font-size: 40px;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border: 2px solid #00f2fe;
  border-radius: 50%;
  margin: 0 auto 20px;
  position: relative;
  color: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

/* Scanning Animation Line */
.login-box::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 2px;
  background: #00f2fe;
  box-shadow: 0 0 10px #00f2fe;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  animation: scanMove 2s infinite ease-in-out;
}

@keyframes scanMove {
  0%, 100% { top: 45px; opacity: 0; }
  50% { top: 115px; opacity: 1; }
}

.login-box h2 {
  color: #fff;
  margin-bottom: 30px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.input-group {
  text-align: left;
  margin-bottom: 20px;
}

.input-group label {
  color: #00f2fe;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
  font-weight: 300;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  outline: none;
  color: #fff;
  font-size: 15px;
  transition: 0.3s;
}

.input-group input:focus {
  border-color: #00f2fe;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

button:disabled {
  background: #444;
  cursor: not-allowed;
  box-shadow: none;
}

.note {
  font-size: 12px;
  text-align: center;
  margin-top: 25px;
  color: #aaa;
  font-style: italic;
}

/* Modern Toast Styling */
#toast {
  visibility: hidden;
  min-width: 280px;
  background: rgba(0, 242, 254, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #00f2fe;
  text-align: center;
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#toast.show {
  visibility: visible;
  animation: slideup 0.5s, fadeout 0.5s 2.5s;
}

@keyframes slideup {
  from { bottom: 0; opacity: 0; }
  to { bottom: 40px; opacity: 1; }
}

@keyframes fadeout {
  from { bottom: 40px; opacity: 1; }
  to { bottom: 20px; opacity: 0; }
}