/* =========================
   RESET / BASE
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

/* =========================
   LOGIN BACKGROUND
========================= */
body.login-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('login-bg.jpg') center / cover no-repeat;
}

/* =========================
   CENTER WRAP
========================= */
.login-page .admin-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   LOGIN CARD (DARKER GLASS)
========================= */
.login-page .login-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;

  /* 🔥 CHANGED PART */
  background: rgba(230, 235, 240, 0.20);   /* darker, 80% transparent */
  backdrop-filter: none;

  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}

/* Diagonal dark overlay */
.login-page .login-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.55) 42%,
    rgba(0,0,0,0) 42%
  );
}


/* Bring content above overlay */
.login-page .login-card > * {
  position: relative;
  z-index: 1;
}

/* =========================
   TITLE
========================= */
.login-page h2 {
  text-align: center;
  color: #fff;
  font-weight: 600;
  margin-bottom: 28px;
}

/* =========================
   FORM
========================= */
.login-page .login-row {
  margin-bottom: 18px;
}

.login-page label {
  display: block;
  font-size: 0.85rem;
  color: #ddd;
  margin-bottom: 6px;
}

/* =========================
   INPUTS
========================= */
.login-page input {
  width: 100%;
  padding: 10px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  font-size: 1rem;
  color: #fff;
}

.login-page input::placeholder {
  color: rgba(255,255,255,0.5);
}

.login-page input:focus {
  outline: none;
  border-bottom-color: #7fb4ff;
}

/* =========================
   BUTTON
========================= */
.login-page button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #f2f2f2;
  color: #111;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.login-page button:hover {
  background: #ffffff;
}

/* =========================
   ALERTS
========================= */
.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.alert-warn {
  background: rgba(255,255,255,0.9);
  color: #333;
}

.alert-error {
  background: rgba(255,230,230,0.95);
  color: #7a1f1f;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
  .login-page .login-card {
    margin: 0 16px;
    padding: 32px 28px;
  }
}
