@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --nyp-red: #e30613;
  --nyp-red-deep: #b20010;
  --nyp-yellow: #ffcc00;
  --nyp-dark: #1a1a1a;
  --nyp-cream: #fff7df;
  --nyp-gold: #f2b300;
  --nyp-border: #f0d199;
  --nyp-muted: #6f6460;
  --nyp-ink: #1f1a17;
  --nyp-white: #ffffff;
  --nyp-shadow: 0 20px 48px rgba(40, 8, 8, 0.28);
  --nyp-shadow-soft: 0 10px 24px rgba(20, 10, 8, 0.14);
  --bjob-blue: #0066b3;
  --bjob-blue-dark: #004c8c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
  background: #ffffff url('/assets/bjob-bg.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--nyp-ink);
  position: relative;
  overflow-x: hidden;
}

/* Decorative feature images */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 400px;
  height: 600px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background-image: url('/assets/bjob-feature-left.png');
  top: 10px;
  left: 10px;
  background-position: left top;
}

body::after {
  background-image: url('/assets/bjob-feature-right.png');
  top: 1100px;
  right: 10px;
  background-position: right top;
}

/* Main login container */
.login-container,
.container,
.auth-card {
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid #d7dbe0;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  position: relative;
  z-index: 1;
}

.login-header,
.header {
  text-align: center;
  margin-bottom: 26px;
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.brand-strip img {
  width: auto;
  max-width: 300px;
}

.login-header h1,
.header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 25px;
  color: var(--nyp-dark);
  margin-bottom: 4px;
  line-height: 1.2;
}

.login-header p,
.header p {
  display: none; /* Hide subtitle "Franchise Login" */
}

.user-info {
  background: #f5f7fa;
  border: 1px solid #d7dbe0;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--nyp-muted);
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--nyp-dark);
  font-weight: 600;
  font-size: 14px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

input[type="text"] {
  letter-spacing: 4px;
  text-align: center;
  font-weight: 700;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--bjob-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.15);
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  border-left: 4px solid;
  background: #ffffff;
}

.alert-error {
  background: #fff2f2;
  color: #b00020;
  border-color: #b00020;
}

.alert-success {
  background: #eef8f0;
  color: #1b5e20;
  border-color: #1b5e20;
}

button {
  width: 100%;
  padding: 12px;
  background: var(--bjob-blue);
  color: #ffffff;
  border: 1px solid var(--bjob-blue-dark);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 102, 179, 0.3);
}

button:hover {
  background: var(--bjob-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 179, 0.4);
}

button:active {
  transform: translateY(0);
}

.footer-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--nyp-muted);
}

.footer-links a {
  color: var(--bjob-blue);
  text-decoration: none;
  font-weight: 600;
}

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

.timer {
  text-align: center;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--nyp-muted);
}

.timer.warning {
  color: var(--nyp-red);
  font-weight: 700;
}

.password-requirements {
  background: #f5f7fa;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--nyp-muted);
}

.password-requirements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.password-requirements li {
  padding: 4px 0 4px 18px;
  position: relative;
}

.password-requirements li:before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--nyp-red);
}

.disabled-form {
  opacity: 0.6;
  pointer-events: none;
}

.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--nyp-muted);
}

.footer a {
  color: var(--bjob-blue);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  body::before,
  body::after {
    display: none; /* Hide feature images on small screens */
  }
  .login-container,
  .container,
  .auth-card {
    padding: 24px;
  }
}
