/* ---------- Reset & box-sizing ---------- */
* { box-sizing: border-box; }

/* ---------- Page background & layout ---------- */
html, body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #8b0000 0%, #ff3b3b 100%);
  color: #222;
}

/* ensure footer space so card isn't hidden */
body { padding-bottom: 90px; }

/* Center container wrapper so we can control vertical behavior */
.page-wrap {
  display: flex;
  flex-direction: column;  /* ✅ stack children vertically */
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}


/* ---------- Login box ---------- */
.login-box {
  width: 420px;           /* desktop target width */
  max-width: 95vw;       /* on small screens use 95% viewport width */
  background: #fff;
  border-radius: 14px;
  padding: 48px 36px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  text-align: left;
}

/* heading inside card */
.login-box h2 {
  margin: 0;
  font-size: 20px;
  color: #c30017;
  text-align: center;
  font-weight: 700;
  margin-bottom: 40px;
}

/* form controls */
.login-box label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5da;
  margin-bottom: 16px;
  font-size: 16px;
  background: #fff;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
  outline: none;
  border-color: #c30017;
  box-shadow: 0 4px 12px rgba(195,0,23,0.08);
}

/* button */
.login-box button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg, #c30017, #a30014);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(163,0,20,0.18);
}
.login-box button:active { transform: translateY(1px); }

.logo-top {
  text-align: center;
  margin-bottom: 20px;
}

.logo-top img {
  max-width: 200px;
  height: auto;
}


/* error */
p.error {
  color: #b00020;
  margin: 12px 0 0;
  text-align: center;
  font-weight: 600;
}

/* ---------- Footer (fixed) ---------- */
.main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1f2a37;
  color: #fff;
  text-align: center;
  padding: 12px 10px;
  font-size: 13px;
  z-index: 999;
}

/* ---------- MOBILE: make card bigger & taller on small screens ---------- */
@media (max-width: 600px) {
  .page-wrap {
    align-items: center;     /* ✅ stay centered vertically */
    justify-content: center; /* ✅ keep horizontal center */
    padding: 16px 12px 36px;
  }

  .login-box {
    width: 96vw;                /* almost full width */
    padding: 56px 24px;         /* increase vertical padding */
    border-radius: 14px;
  }

  .login-box h2 {
    font-size: 28px;
  }

  .login-box input[type="text"],
  .login-box input[type="password"] {
    padding: 16px;
    font-size: 17px;
  }

  .login-box button {
    padding: 16px;
    font-size: 18px;
  }

  .main-footer { font-size: 11px; padding: 1px; }
}
