/* ====== General Layout ====== */
body {  margin: 0;  padding: 0;  font-family: "Inter", sans-serif;  color: #e5e7eb;  display: flex;  min-height: 100vh;  align-items: center;  justify-content: center;  overflow-x: hidden;  position: relative; /* for layering */  background: transparent; /* background handled by pseudo-elements */}/* blurred background image */body::before {  content: "";  position: fixed;  inset: 0;  background-image: url("../img/foxinfralogo.png");  background-repeat: no-repeat;  background-position: center;  background-size: contain;   /* ✅ shows full logo */  /* optional: keeps it from touching edges on small screens */  padding: 6vh 6vw;  box-sizing: border-box;  transform: scale(1.1);     /* smaller scale so contain doesn't crop */  opacity: 0.22;  z-index: 0;  pointer-events: none;}/* dark overlay so the UI stays readable */body::after {  content: "";  position: fixed;  inset: 0;  background: rgba(15, 23, 42, 0.70); /* similar feel to your gradient */  z-index: 0;  pointer-events: none;}/* keep the login card above the background */.login-container {  position: relative;  z-index: 1;  width: min(340px, 92vw);}

.login-container h2 {
    margin: 0 0 15px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
}

label {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    color: #cbd5e1;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    padding: 10px 12px;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 15px;
}

input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* ====== Buttons ====== */
button {
    width: 100%;
    background: #3b82f6;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    color: white;
    font-weight: 500;
    transition: background 0.2s;
}

button:hover {
    background: #2563eb;
}

/* ====== Error Box ====== */
.error-box,
.success-box {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.error-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.success-box {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid #22c55e;
    color: #bbf7d0;
}

/* ====== Links ====== */
.login-links {
    margin-top: 15px;
    text-align: center;
}

.login-links a {
    color: #93c5fd;
    text-decoration: none;
    font-size: 13px;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Fix overflow + Chrome autofill "drip" */
*, *::before, *::after { box-sizing: border-box; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #e2e8f0;
  -webkit-box-shadow: 0 0 0 1000px #1e293b inset;
  box-shadow: 0 0 0 1000px #1e293b inset;
  border: 1px solid #334155;
  transition: background-color 9999s ease-out 0s; /* prevents flash */
}