/* 🌐 GENERAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* 🖼️ BACKGROUND */
body {
  background: url('1.jpg') no-repeat center center fixed;
  background-size: cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 💎 GLASS CONTAINER (Login/Register) */
.container {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  width: 780px;
  max-width: 100%;
  min-height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
}

/* Smaller container for dashboard pages */
.container.small {
  width: 900px;
  min-height: 600px;
  padding: 30px 40px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.35);
}

/* ✍️ HEADINGS */
h1, h2, h3 {
  color: #000;
  text-align: center;
  margin-bottom: 20px;
}

p {
  color: #111;
  text-align: center;
}

/* 📥 FORM */
form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 50px;
  text-align: center;
  justify-content: center;
  height: 100%;
}

input, select, textarea {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 8px 0;
  width: 100%;
  color: #000;
  font-size: 14px;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 5px rgba(138, 43, 226, 0.8);
}

/* 🟣 BUTTON */
button {
  border-radius: 20px;
  border: none;
  background: linear-gradient(90deg, #4a00e0, #8e2de2);
  color: #fff;
  font-size: 14px;
  padding: 12px 45px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #5e00ff, #a244ff);
}

button.ghost {
  background: transparent;
  border: 2px solid #fff;
}

/* 🔄 LOGIN/REGISTER TRANSITIONS */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

/* LOGIN (VISIBLE BY DEFAULT) */
.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: all 0.6s ease-in-out;
}

/* REGISTER (HIDDEN BY DEFAULT) */
.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
  visibility: hidden;
  transition: all 0.6s ease-in-out;
}

/* When switching to Register mode */
.container.right-panel-active .sign-up-container {
  transform: translateX(100%);
  opacity: 1;
  visibility: visible;
  z-index: 5;
}

/* Hide Login when Register is active */
.container.right-panel-active .sign-in-container {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}

/* 💫 OVERLAY ANIMATION */
.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
  z-index: 100;
}

.container.right-panel-active .overlay-container {
  transform: translateX(-100%);
}

.overlay {
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  text-align: center;
  top: 0;
  height: 100%;
  width: 50%;
  transition: transform 0.6s ease-in-out;
}

.overlay-left { transform: translateX(-20%); }
.container.right-panel-active .overlay-left { transform: translateX(0); }

.overlay-right { right: 0; transform: translateX(0); }
.container.right-panel-active .overlay-right { transform: translateX(20%); }

/* 📨 MESSAGE BOX */
.message {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  font-weight: 500;
}

/* 📋 TABLE (Admin Dashboard) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
}

table th {
  background: linear-gradient(90deg, #4a00e0, #8e2de2);
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px;
}

table td {
  color: #111;
  text-align: center;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

table tr:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

/* 🔗 LINKS */
a {
  color: #4a00e0;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}
