@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ==========================================================================
   EasyInvoice365 — auth pages brand overlay
   Linked ONLY from login.php and register.php, after head-css.php, so it
   overrides style.css on those two pages and nowhere else in the app.
   Keep these tokens in sync with assets/css/style.css (:root).
   ========================================================================== */

.auth-bg {
  --paper: #F6F5EF;
  --paper-deep: #EFEDE3;
  --ink: #132A21;
  --ink-soft: #41544B;
  --green: #147A56;
  --green-deep: #0C3B2C;
  --amber: #E3A32E;
  --line: #D8D5C7;

  background: var(--paper) !important;
  min-height: 100vh;
}

/* --- brand logo above the card --- */
.auth-bg .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Bricolage Grotesque', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.auth-bg .auth-brand em {
  font-style: normal;
  color: var(--green);
}
.auth-bg .auth-logo {
  width: 34px;
  height: auto;
}
.auth-bg .brand-lockup {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.auth-bg .brand-tag {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 500;
  font-size: 0.55rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
  white-space: nowrap;
}

/* --- card --- */
.auth-bg .card {
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(19, 42, 33, 0.12) !important;
}
.auth-bg .card-body h5 {
  color: var(--ink);
  font-weight: 700;
}
.auth-bg .card-body .text-center p {
  color: var(--ink-soft);
}

/* --- inputs --- */
.auth-bg .form-control,
.auth-bg .input-group-text {
  border-color: var(--line);
  border-radius: 10px;
  background-color: var(--paper);
  color: var(--ink);
}
.auth-bg .input-group-text {
  color: var(--ink-soft);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.auth-bg .form-control.border-start-0 {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.auth-bg .form-control:focus {
  background-color: #fff;
  border-color: var(--green);
  box-shadow: none;
}
.auth-bg .input-group:focus-within .input-group-text {
  border-color: var(--green);
  background-color: #fff;
}
.auth-bg .input-group:focus-within {
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(20, 122, 86, 0.15);
}

/* --- primary action --- */
.auth-bg .btn.bg-primary-gradient {
  background: var(--green-deep) !important;
  background-image: none !important;
  border: 1.5px solid var(--green-deep);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--paper) !important;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-bg .btn.bg-primary-gradient:hover {
  background: var(--green) !important;
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(12, 59, 44, 0.25);
}

/* --- links --- */
.auth-bg a,
.auth-bg .hover-a {
  color: var(--green);
}
.auth-bg a:hover,
.auth-bg .hover-a:hover {
  color: var(--green-deep);
}
.auth-bg .auth-brand:hover {
  color: var(--ink);
}

/* --- checkbox --- */
.auth-bg .form-check-input:checked {
  background-color: var(--green);
  border-color: var(--green);
}
.auth-bg .form-check-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 122, 86, 0.15);
}

/* --- password eye toggle --- */
.auth-bg .toggle-password,
.auth-bg .toggle-passwords {
  color: var(--ink-soft);
  cursor: pointer;
}
.auth-bg .toggle-password:hover,
.auth-bg .toggle-passwords:hover {
  color: var(--green);
}
