/* DevLov — client portal overrides. Loaded AFTER assets/default/css/theme.css.
   Never edit theme.css directly — it's vendor code, this file survives osTicket upgrades. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

/* Typography & links */
body {
  font-size: 15px;
  line-height: 1.6;
}
a, .link {
  color: #7f6bf2;
}
a:hover, .link:hover {
  border-bottom: 1px dotted #7f6bf2;
}
h1 {
  color: #15161d;
  font-weight: normal;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 34px;
}
h2, .subject {
  font-size: 20px;
}
h3 {
  font-size: 17px;
}

/* Buttons */
.button,
.button:visited,
.green.button,
.green.button:visited {
  background-color: #ff9d4d;
}
.green.button:hover {
  background-color: #ff8a2e;
}
.blue.button,
.blue.button:visited {
  background-color: #7f6bf2;
}
.blue.button:hover {
  background-color: #6b54e8;
}

/* Page & container */
body {
  background: #f5f4f1;
  font-family: 'Space Grotesk', helvetica, arial, sans-serif;
}
#container {
  width: 1140px;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  margin: 48px auto;
  border-radius: 16px;
  border: 1px solid rgba(21,22,29,0.1);
  box-shadow: 0 4px 24px rgba(21,22,29,0.06);
}
#header {
  height: 88px;
  padding: 0 36px;
}
#nav {
  margin: 0 36px;
  padding: 6px 14px;
  height: 26px;
}
#nav li a {
  height: 26px;
  line-height: 26px;
  padding: 0 14px 0 34px;
}
#content {
  margin: 0 36px;
  padding: 32px 0;
}
@media (max-width: 1200px) {
  #container {
    width: 92%;
  }
}

/* Header / brand */
.brand-wordmark {
  display: inline-block;
  vertical-align: middle;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 36px;
  color: #15161d;
  text-decoration: none;
}
.brand-heart {
  display: inline-block;
  vertical-align: middle;
  height: 38px;
  width: auto;
  margin-right: 12px;
}

/* Nav */
#nav {
  background: none;
  border-top: 1px solid rgba(21,22,29,0.08);
  border-bottom: 1px solid rgba(21,22,29,0.08);
  box-shadow: none;
}
#nav li a.active,
#nav li a:hover {
  background-color: rgba(127,107,242,0.12);
  color: #15161d;
}
#nav li a:hover {
  color: #7f6bf2;
}

/* Footer */
#footer {
  text-align: center;
  padding: 32px 0 16px;
  margin: 0 36px;
  border-top: 1px solid rgba(21,22,29,0.08);
}
.footer-heart {
  width: 26px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 12.5px;
  color: rgba(21,22,29,0.65);
  margin: 0 0 4px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(21,22,29,0.45);
  margin: 0;
}

/* Form controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    border: 1px solid rgba(21,22,29,0.18);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Space Grotesk', helvetica, arial, sans-serif;
    color: #15161d;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7f6bf2;
    box-shadow: 0 0 0 3px rgba(127,107,242,0.15);
}
input[type="submit"],
input[type="button"],
input[type="reset"],
button {
    font-family: 'Space Grotesk', helvetica, arial, sans-serif;
    border: 1px solid rgba(21,22,29,0.15);
    border-radius: 10px;
    background: #f5f4f1;
    color: #15161d;
    padding: 11px 22px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
input[type="submit"]:hover,
button:hover {
    background: #eceae5;
}
#ticket-create input[type="submit"],
input[value="Create Ticket"] {
    background: #ff9d4d;
    border-color: #ff9d4d;
    color: #fff;
    font-weight: 600;
}
input[value="Create Ticket"]:hover {
    background: #ff8a2e;
}

/* Login page — true split screen: flat brand panel + dark minimal form panel, flush (no seam/card) */
/* header.inc.php falls back to a plain <hr> when $nav is cleared (login page
   only, see login.php) instead of the nav bar — hide it so .login-shell reads
   truly edge-to-edge. Falls back gracefully wherever :has() isn't supported. */
hr:has(+ #content .login-shell) {
    display: none;
}

.login-shell {
    display: flex;
    align-items: stretch;
    margin: 0 -36px;
    min-height: 560px;
    overflow: hidden;
}
.login-brand {
    flex: 0 0 46%;
    position: relative;
    padding: 44px 48px;
    background: linear-gradient(160deg, #2c1f66 0%, #4c3aa3 55%, #b8703f 140%);
    color: #fff;
    display: flex;
    flex-direction: column;
}
.login-brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: auto;
}
.login-brand-heart {
    width: 26px;
    height: auto;
    margin-right: 8px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.login-brand-wordmark {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: #fff;
}
.login-brand-title {
    margin: 40px 0 12px;
    font-size: 30px;
    color: #fff;
}
.login-brand-tagline {
    margin: 0 0 28px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.6;
    max-width: 320px;
}
.login-brand-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-brand-link {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    width: fit-content;
}
.login-brand-link:hover {
    border-bottom-color: #fff;
}
.login-illustration {
    margin-top: 28px;
    color: #fff;
    opacity: 0.8;
}
.login-illustration svg {
    width: 160px;
    height: auto;
}

.login-panel {
    flex: 1;
    padding: 56px 60px;
    background: #1a1b23;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
}
.login-tab {
    font-size: 15px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    padding-bottom: 8px;
}
.login-tab-active {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #ff9d4d;
}
a.login-tab:hover {
    color: rgba(255,255,255,0.8);
    border-bottom: none;
}
.login-form {
    max-width: 360px;
}
.login-error {
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255,120,120,0.15);
    color: #ffb3b3;
    font-size: 14px;
}
.login-field {
    margin-bottom: 26px;
}
.login-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.login-field input {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    border-radius: 0;
    padding: 6px 2px 10px;
    color: #fff;
    font-size: 15px;
}
.login-field input::placeholder {
    color: rgba(255,255,255,0.3);
}
.login-field input:focus {
    border-bottom-color: #ff9d4d;
    box-shadow: none;
}
.login-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
}
.login-form-actions .btn {
    background: #ff9d4d;
    border: none;
    color: #1a1b23;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 24px;
}
.login-form-actions .btn:hover {
    background: #ffb066;
}
.login-forgot {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.login-forgot:hover {
    border-bottom-color: rgba(255,255,255,0.6);
}
.login-ext-auth {
    margin-top: 20px;
}
.login-panel-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.login-panel-footer a {
    color: rgba(255,255,255,0.75);
}
@media (max-width: 780px) {
    .login-shell {
        flex-direction: column;
        margin: 0 -36px;
    }
    .login-brand,
    .login-panel {
        padding: 36px 28px;
    }
    .login-illustration {
        display: none;
    }
}

/* Ticket form — more generous label column and reply/description width */
#ticketForm > table td {
    width: 200px;
}
#ticketForm td textarea,
#clientLogin td textarea,
#ticketForm div textarea,
#clientLogin div textarea {
    width: 100%;
    max-width: 760px;
}
#reply textarea {
    width: 100% !important;
    max-width: 760px;
}

/* Ticket list table — more breathing room per row */
#ticketTable th {
    height: 34px;
    line-height: 34px;
    padding: 0 12px;
}
#ticketTable td {
    padding: 10px 12px;
}
