/* New VIP Inmates look for the web chat pages. Loaded after each page's own <style>:
   colours, background and logo only - layout, forms and scripts are untouched. */
html body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #05070c url(bg-wide.jpg) center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) {
  html body { background: #05070c; }
  html body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #05070c url(bg-phone.jpg) center / cover no-repeat; }
}

/* sign-in style pages */
html body .brand img { width: min(260px, 70vw); height: auto; filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.35)); }
html body .brand h1 { color: #f2d27a; font-weight: 800; letter-spacing: -0.02em; }
html body .brand p { color: #b9b3a8; }
html body .card {
  background: rgba(14, 17, 25, 0.86); border: 1px solid rgba(212, 175, 55, 0.25); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html body label { color: #f2f0eb; }
html body input[type="tel"], html body input[type="password"], html body input[type="text"], html body input[type="email"], html body select {
  background: #141822; border: 2px solid #2a2f3b; border-radius: 14px; color: #f2f0eb;
}
html body input:focus, html body select:focus { border-color: #d4af37; outline: none; }
html body .submit_btn {
  background: linear-gradient(120deg, #a87a22, #e2b84a 30%, #f6dc8a 50%, #d4a537 70%, #9b701c);
  color: #17130a; border-radius: 14px; font-weight: 800; font-family: inherit;
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1), filter 150ms;
}
html body .submit_btn:hover { filter: brightness(1.06); }
html body .submit_btn:active { transform: scale(0.98); }
html body .switch, html body .forgot_link { color: #b9b3a8; }
html body .switch a { color: #f2d27a; }
html body .error { border-radius: 14px; }

/* chat list + conversation */
html body .top_bar {
  background: rgba(10, 12, 18, 0.82); border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html body .top_bar h1 { color: #f2d27a; }
html body .list .row { border-bottom-color: rgba(255, 255, 255, 0.06); background: rgba(8, 10, 15, 0.55); }
html body .list .row:hover, html body .list .row:active { background: rgba(212, 175, 55, 0.08); }
html body .avatar { box-shadow: inset 0 0 0 2px rgba(212, 175, 55, 0.45); }
html body .messages { background: rgba(5, 7, 12, 0.55); }

/* "Back to VIP Inmates": a clear button instead of faint grey text */
html body .back_link {
  display: block; width: fit-content; margin: 22px auto 0; padding: 12px 22px; border-radius: 999px;
  background: rgba(10, 12, 18, 0.78); border: 1px solid rgba(212, 175, 55, 0.55); color: #f2d27a;
  font-size: 15px; font-weight: 600; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 150ms, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
html body .back_link:hover { background: rgba(212, 175, 55, 0.16); color: #fff1c2; }
html body .back_link:active { transform: scale(0.97); }
html body .brand a { display: inline-block; }
html body .switch { background: rgba(10, 12, 18, 0.6); width: fit-content; margin-left: auto; margin-right: auto; padding: 6px 14px; border-radius: 999px; }

/* browser autofill: keep the dark field instead of yellow */
html body input:-webkit-autofill, html body input:-webkit-autofill:hover, html body input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f2f0eb; caret-color: #f2f0eb;
  -webkit-box-shadow: 0 0 0 1000px #141822 inset; transition: background-color 9999s ease-out 0s;
}
