/* QuickBooks Desktop Premier Nonprofit 2017 — Welcome & Sign-In Screen */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  font-family: "Segoe UI", Tahoma, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: #1F2937;
  background: #0E2235;
}
body.qbl-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 75% 60% at 15% 20%, rgba(44, 160, 28, 0.16), transparent 65%),
    radial-gradient(ellipse 65% 55% at 88% 85%, rgba(56, 132, 209, 0.18), transparent 65%),
    linear-gradient(145deg, #0D1F30 0%, #17334E 52%, #10263B 100%);
  position: relative;
  overflow-x: hidden;
}
body.qbl-body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Authentic QuickBooks Desktop Top Bar */
.qbl-topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 20px;
  background: rgba(11, 27, 43, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  color: #E2ECF5;
  font-size: 12.5px;
}
.qbl-tb-left { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.qbl-tb-dot {
  width: 22px; height: 22px; border-radius: 50%; background: #2CA01C;
  color: #FFF; font-weight: 800; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px rgba(44, 160, 28, 0.32);
  letter-spacing: -0.5px;
}
.qbl-tb-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(44, 160, 28, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #A7F3D0;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
}

/* Centered Stage */
.qbl-stage {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 18px 36px;
}

/* Split Welcome / Sign-In Card */
.qbl-card {
  width: 100%; max-width: 890px;
  display: grid; grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  border-top: 4px solid #2CA01C;
  box-shadow:
    0 24px 60px rgba(4, 12, 22, 0.55),
    0 4px 16px rgba(4, 12, 22, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Left QuickBooks Brand Panel */
.qbl-brand {
  position: relative;
  background: linear-gradient(160deg, #16334E 0%, #10263B 65%, #0C1E2F 100%);
  color: #FFFFFF;
  padding: 36px 34px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.qbl-brand::after {
  content: "";
  position: absolute; right: -85px; bottom: -85px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 32px solid rgba(44, 160, 28, 0.10);
  pointer-events: none;
}
.qbl-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.qbl-crest {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, #35B824 0%, #248F17 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(44, 160, 28, 0.40), inset 0 1px 2px rgba(255,255,255,0.35);
}
.qbl-wordmark .intuit {
  font-size: 11px; letter-spacing: 2.8px; font-weight: 700;
  color: #93C5FD; text-transform: uppercase;
}
.qbl-wordmark .qb {
  font-size: 27px; font-weight: 800; line-height: 1.05; letter-spacing: -0.6px;
  color: #FFFFFF; margin-top: 1px;
}
.qbl-wordmark .ed {
  display: inline-block; margin-top: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(44, 160, 28, 0.22); color: #86EFAC;
  border: 1px solid rgba(134, 239, 172, 0.30);
  padding: 2px 8px; border-radius: 4px;
}

.qbl-company-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #2CA01C;
  border-radius: 7px;
  padding: 13px 15px;
  margin-bottom: 22px;
}
.qbl-company-box .lbl {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.1px;
  color: #94A3B8; font-weight: 600;
}
.qbl-company-box .cname {
  font-size: 19px; font-weight: 700; color: #FFFFFF; margin-top: 3px;
}
.qbl-company-box .csub {
  font-size: 12px; color: #CBD5E1; margin-top: 2px;
}

.qbl-feats {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; gap: 10px;
}
.qbl-feats li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #DCE7F3;
}
.qbl-feats .ic {
  width: 22px; height: 22px; flex: 0 0 22px;
  border-radius: 50%;
  background: rgba(44, 160, 28, 0.22); color: #86EFAC;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

.qbl-brand-foot {
  position: relative; z-index: 1;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11px; color: #94A3B8;
  display: flex; align-items: center; gap: 7px;
}

/* Right Sign-In Form Panel */
.qbl-form-panel {
  padding: 38px 36px 32px;
  display: flex; flex-direction: column; justify-content: center;
  background: #FFFFFF;
}
.qbl-form-hdr { margin-bottom: 22px; }
.qbl-form-hdr h1 {
  margin: 0; font-size: 23px; font-weight: 700; color: #1D3853; letter-spacing: -0.3px;
}
.qbl-form-hdr p {
  margin: 6px 0 0; font-size: 13.5px; color: #64748B; line-height: 1.45;
}

.qbl-err {
  display: flex; align-items: flex-start; gap: 9px;
  background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B;
  border-radius: 7px; padding: 10px 12px; margin-bottom: 16px;
  font-size: 13px; font-weight: 500; line-height: 1.4;
}
.qbl-info {
  background: #F0FDF4; border: 1px solid #86EFAC; color: #166534;
  border-radius: 7px; padding: 10px 12px; margin-bottom: 16px;
  font-size: 12.5px; line-height: 1.45;
}

.qbl-field { margin-bottom: 16px; }
.qbl-field label {
  display: block; font-size: 12.5px; font-weight: 600; color: #334155;
  margin-bottom: 6px;
}
.qbl-input-wrap {
  position: relative; display: flex; align-items: center;
}
.qbl-input-wrap .qbl-ico {
  position: absolute; left: 12px; color: #64748B; pointer-events: none;
  display: inline-flex; align-items: center;
}
.qbl-input-wrap input {
  width: 100%; height: 44px;
  padding: 0 42px 0 38px;
  border: 1.5px solid #CBD5E1;
  border-radius: 7px;
  font-size: 14.5px; color: #0F172A;
  background: #F8FAFC;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.qbl-input-wrap input:focus {
  outline: none;
  border-color: #2CA01C;
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(44, 160, 28, 0.16);
}
.qbl-eye {
  position: absolute; right: 8px;
  background: transparent; border: none; cursor: pointer;
  color: #64748B; width: 32px; height: 32px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
}
.qbl-eye:hover { background: #E2E8F0; color: #1D3853; }

.qbl-opt-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: -2px 0 20px; font-size: 12.5px; color: #475569;
}
.qbl-remember {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none;
}
.qbl-remember input { width: 15px; height: 15px; accent-color: #2CA01C; cursor: pointer; }

.qbl-submit {
  width: 100%; height: 46px;
  border: none; border-radius: 7px;
  background: linear-gradient(180deg, #32B321 0%, #279618 100%);
  color: #FFFFFF;
  font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(44, 160, 28, 0.34);
  transition: transform .1s, box-shadow .15s, background .15s;
}
.qbl-submit:hover {
  background: linear-gradient(180deg, #2CA01C 0%, #218314 100%);
  box-shadow: 0 6px 18px rgba(44, 160, 28, 0.42);
}
.qbl-submit:active { transform: translateY(1px); }

.qbl-help {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  font-size: 12px; color: #64748B; line-height: 1.5; text-align: center;
}
.qbl-help b { color: #334155; }

/* Password Strength Meter (first-login change password) */
.qbl-meter { height: 5px; background: #E2E8F0; border-radius: 99px; margin-top: 7px; overflow: hidden; }
.qbl-meter-bar { height: 100%; width: 0%; background: #EF4444; transition: width .2s, background .2s; }
.qbl-meter-txt { font-size: 11.5px; color: #64748B; margin-top: 4px; }

/* Bottom copyright bar */
.qbl-foot {
  position: relative; z-index: 2;
  text-align: center; padding: 10px 16px 16px;
  font-size: 11.5px; color: rgba(203, 213, 225, 0.65);
}

/* Responsive Phone / Tablet */
@media (max-width: 780px) {
  .qbl-topbar { padding: 8px 14px; font-size: 11.5px; }
  .qbl-tb-pill { display: none; }
  .qbl-stage { padding: 14px 12px 22px; align-items: flex-start; }
  .qbl-card { grid-template-columns: 1fr; max-width: 440px; }
  .qbl-brand { padding: 22px 22px 18px; }
  .qbl-feats, .qbl-brand-foot { display: none; }
  .qbl-logo-row { margin-bottom: 14px; }
  .qbl-crest { width: 46px; height: 46px; flex: 0 0 46px; }
  .qbl-wordmark .qb { font-size: 22px; }
  .qbl-company-box { margin-bottom: 0; padding: 10px 13px; }
  .qbl-company-box .cname { font-size: 16px; }
  .qbl-form-panel { padding: 24px 22px 22px; }
  .qbl-form-hdr h1 { font-size: 20px; }
}

/* Post-Login Select Company File Cards */
.qbl-tb-right { display: flex; align-items: center; gap: 10px; }
.qbl-tb-out {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.20);
  color: #E2ECF5; font-size: 11.5px; font-weight: 600;
  padding: 4px 11px; border-radius: 5px; cursor: pointer;
}
.qbl-tb-out:hover { background: rgba(255,255,255,0.20); color: #FFFFFF; }
.qbl-comp-list {
  display: grid; gap: 10px; max-height: 310px; overflow-y: auto;
  margin-bottom: 16px; padding-right: 2px;
}
.qbl-comp-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px;
  border: 1.5px solid #D5E0EB; border-radius: 8px;
  background: #F8FAFC;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.qbl-comp-item:hover {
  border-color: #2CA01C; background: #F4FBF3;
  box-shadow: 0 3px 10px rgba(44, 160, 28, 0.10);
}
.qbl-comp-item.is-last {
  border-color: #2CA01C; background: #F0FDF4;
}
.qbl-comp-name { font-size: 15px; font-weight: 700; color: #1D3853; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.qbl-comp-meta { font-size: 11.5px; color: #64748B; margin-top: 3px; }
.qbl-comp-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC;
  padding: 1px 6px; border-radius: 99px;
}
.qbl-open-btn {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #32B321 0%, #279618 100%);
  color: #FFFFFF; border: none; border-radius: 6px;
  padding: 9px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(44, 160, 28, 0.28);
}
.qbl-open-btn:hover { background: linear-gradient(180deg, #2CA01C 0%, #218314 100%); }
.qbl-comp-acts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #E2E8F0;
}
.qbl-sec-btn {
  flex: 1 1 170px; text-align: center; text-decoration: none;
  padding: 9px 12px; border-radius: 6px;
  border: 1.5px solid #CBD5E1; background: #FFFFFF; color: #1D3853;
  font-size: 12.5px; font-weight: 600;
}
.qbl-sec-btn:hover { border-color: #1D3853; background: #F1F5F9; }
