/* Color tokens for the login page */


:root{
  --bg:#0c0c0e; --panel:#141418; --text:#e8e8ea; --muted:#9aa0a6;
  --accent:#e50914; --border:#202127;
}
body{background:var(--bg); color:var(--text);}

/* Full-screen background image (if not already in login.php inline) */
body::before{
  content:"";
  position:fixed; inset:0; z-index:-2;
  background: url("/assets/loginbg.avif") center top / cover no-repeat;
  transform: translateZ(0) scale(1.02);
}
body::after{
  content:"";
  position:fixed; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55));
}

/* Sticky front header (ONLY keep if not defined in header_front.php) */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:linear-gradient(180deg, rgba(12,12,14,.95), rgba(12,12,14,.86) 60%, rgba(12,12,14,0));
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--border);
}
.site-header__inner{
  max-width:1600px; margin:0 auto; padding:10px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.site-header .brand{display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; font-weight:700; letter-spacing:.2px;}
.site-header .brand img{ height:64px; width:auto; display:block; }
.topnav{ display:flex; align-items:center; gap:18px; }
.topnav a{ color:var(--text); text-decoration:none; opacity:.9; }
.topnav a:hover{ opacity:1; }
.topnav .cta{ background:var(--accent); padding:8px 12px; border-radius:8px; font-weight:600; }

/* Login layout */
.login-wrap{ min-height:calc(100vh - 70px); display:grid; place-items:center; padding:24px; }

.card{
  width:100%; max-width:420px; background:rgba(20,20,20,.82);
  border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.45); backdrop-filter:blur(6px);
}
.card h1{ margin:0 0 12px; font-size:22px; color:#fff; }
.card .field{ margin:10px 0; }
.card input{
  width:100%; padding:10px; border-radius:8px; border:1px solid #333;
  background:#1b1b1b; color:#eee;
}
.card input::placeholder{ color:#999; }

.card .actions{
  display:flex; gap:10px; align-items:center; justify-content:space-between; margin-top:12px;
}
.btn-primary{ background:#e50914; color:#fff; padding:10px 14px; border-radius:8px; border:0; cursor:pointer; font-weight:600; }
.btn-secondary{ background:#333; color:#fff; padding:10px 14px; border-radius:8px; border:0; cursor:pointer; }
.btn-primary:hover{ filter:brightness(1.08); }
.btn-secondary:hover{ filter:brightness(1.06); }

/* Messages */
.form-error{ background:#f8d7da; color:#721c24; padding:10px; border-left:4px solid #dc3545; border-radius:6px; margin-bottom:10px; }
.form-success{ background:#d4edda; color:#155724; padding:10px; border-left:4px solid #28a745; border-radius:6px; margin-bottom:10px; }

/* Focus styles for accessibility */
.card input:focus,
.btn-primary:focus,
.btn-secondary:focus{
  outline:2px solid #8ab4f8; outline-offset:2px;
}


