/* ===============================
   GLOBAL RESET
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

/* ===============================
   PAGE BASE
================================ */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000; /* fallback */
}

/* ===============================
   THREE.JS BACKGROUND
================================ */
.canvas-container {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#productCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Optional dark overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* ===============================
   LOGIN CONTAINER (CENTERED)
================================ */
.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  width: 350px;
  padding: 40px 30px;
  text-align: center;

  background: rgba(42, 51, 53, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translate(-50%, -52%);
  box-shadow: 0 30px 55px rgba(0,0,0,0.6);
}

/* ===============================
   LOGO
================================ */
.login-container img {
  width: 130px;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.login-container img:hover {
  transform: rotate(-4deg) scale(1.05);
}

/* ===============================
   LABELS
================================ */
label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

/* ===============================
   INPUTS
================================ */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;

  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.12);

  color: #ffffff;
  font-size: 14px;
  transition: background 0.3s, box-shadow 0.3s;
}

input::placeholder {
  color: #dddddd;
}

input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.8);
}

/* ===============================
   BUTTON
================================ */
button {
  width: 100%;
  padding: 12px;

  border-radius: 8px;
  border: none;
  cursor: pointer;

  background: linear-gradient(90deg, #00bfff, #1e90ff);
  color: #ffffff;

  font-weight: 600;
  font-size: 16px;

  transition: transform 0.2s ease, background 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #1e90ff, #00bfff);
}

/* ===============================
   ERROR MESSAGES
================================ */
ul {
  list-style: none;
  margin-bottom: 15px;
  padding: 0;
}

ul li {
  color: #ff4b5c;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* ===============================
   LINKS
================================ */
p {
  margin-top: 12px;
}

p a {
  color: #00bfff;
  text-decoration: none;
  font-weight: 500;
  margin: 0 8px;
  transition: color 0.3s;
}

p a:hover {
  color: #1e90ff;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 420px) {
  .login-container {
    width: 90%;
    padding: 30px 20px;
  }
}
