

.login-logo {
  width: 200px; /* Increase size as needed */
  display: block;
  margin: 0 auto 1rem; /* Center horizontally */
  animation: floatIn 2s ease forwards;
  opacity: 0;
}


@keyframes floatIn {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}


body {
  font-family: Arial, sans-serif;
  height: 100vh; /* Full viewport height */
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
}

/* Center the container */
.container {
  width: 100%;
  max-width: 280px;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Inputs */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Submit button */
input[type="submit"] {
  width: 100%;
  padding: 0.5rem;
  background: #007bffcc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
input[type="submit"]:hover {
  background: #0056b3;
}

.error {
  color: red;
}

/* Toggle text link */
.toggle-link {
  text-align: center;
  display: block;
  margin-top: 1rem;
  cursor: pointer;
  color: #007BFF;
}

/* Show/hide box logic */
.form-box {
  display: none;
}
.form-box.active {
  display: block;
}


/* Prevent caret and focus outlines on the entire page except inputs */
body, html, .container, div, section, article {
  user-select: none;
  caret-color: transparent;
  outline: none;
}

/* Re-enable caret only for input fields */
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
button:focus {
  caret-color: auto;
  outline: 2px solid #007bff; /* or your highlight color */
  user-select: text;
}

/* Hover and focus effect for input fields */
input[type="text"]:hover,
input[type="password"]:hover,
input[type="text"]:focus,
input[type="password"]:focus {
  border: 1px solid #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.4);
  transition: all 0.2s ease-in-out;
}

/* Smooth transition on all input fields */
input[type="text"],
input[type="password"] {
  transition: all 0.2s ease-in-out;
}

/* Button hover effect */
input[type="submit"]:hover {
  background-color: #0056b3;
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: Add subtle hover to toggle link */
.toggle-link:hover {
  color: #0056b3;
  text-decoration: underline;
}


body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(
                circle at var(--x, 50%) var(--y, 50%),
                rgba(255, 255, 255, 0.25) 0%,
                rgba(0, 0, 0, 0.6) 100%
              ),
              linear-gradient(135deg, #166103, #013501);
  background-repeat: no-repeat;
  background-size: cover;
  transition: background 0.2s ease;
  --x: 50%;
  --y: 50%;
  overflow: hidden;
}

input:focus {
  outline: none;
  box-shadow: 0 0 5px #5faf5f;
  transition: box-shadow 0.3s ease;
}
body {
  --x: 50%;
  --y: 50%;
  margin: 0;
  height: 100vh;
  background: radial-gradient(
                circle at var(--x) var(--y),
                rgba(230, 230, 230, 0.993),
                rgb(35, 150, 9)
              );
  background-repeat: no-repeat;
  background-size: cover;
  transition: background 0.2s ease;
}

/* --- Preloader --- */
 #preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a0f2c, #0e142e);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-logo {
  text-align: center;
  color: white;
}
.loader-logo .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #00eaff;
  border-radius: 50%;
  animation: pulse 0.5s infinite ease-in-out;
  margin-bottom: 1rem;
}
.loader-logo h1 {
  font-size: 1.8rem;
  letter-spacing: 2px;
}
.loader-logo h1 span {
  color: #00eaff;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
} 

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f0f2f5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form-container {
  width: 90%;
  max-width: 400px;
  background-color: white;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

form label {
  display: block;
  margin: 10px 0 5px;
  color: #333;
  font-size: 14px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 16px;
}

form input[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: none;
  background-color: #2c87f0;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

form input[type="submit"]:hover {
  background-color: #206bd3;
}

.show-password {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}


.admin-checkbox { 
  margin: 10px 0; 
}

.limit-message { 
  color: red; font-size: 0.9rem; display: none; margin-top: 5px; 
}


/* Base background */
body {
  transition: background 0.3s linear;
  position: relative;
  overflow: hidden;
}

/* Admin overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #213f05, #182536, #520101);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  opacity: 0;                /* hidden by default */
  transition: opacity 1.3s ease-in-out; /* fade effect */
  z-index: -1;               /* stays behind content */
}

/* When admin mode is active, fade in overlay */
body.admin-theme::before {
  opacity: 1;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
