/* easyprop CRM brand, phase 1: the login screen only.
 * Colours and font from the easyprop CI manual v1.0 (21 October 2026).
 * Loaded after main.css. Everything is scoped to .login-screen, so the rest of the app is unchanged.
 * Undo: remove the brand.css line from index.php.
 */
:root {
  --ep-navy:      #0F1729;
  --ep-teal:      #0DA6A3;
  --ep-deep-teal: #087C7A;
  --ep-teal-20:   #CFEDED;
  --ep-slate:     #5B6273;
  --ep-cloud:     #F4F6F8;
  --ep-font:      'Plus Jakarta Sans', Arial, sans-serif;
}

.login-screen {
  background: var(--ep-navy);
  font-family: var(--ep-font);
  position: relative;
  overflow: hidden;
}
/* a faint oversized house outline, as on the manual's cover */
.login-screen::before {
  content: '';
  position: absolute;
  right: -120px; bottom: -160px;
  width: 560px; height: 560px;
  background: url('../brand/easyprop-symbol-reversed.png') no-repeat center / contain;
  opacity: .05;
  pointer-events: none;
}
.login-card {
  position: relative;
  border: 0;
  border-top: 4px solid var(--ep-teal);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  font-family: var(--ep-font);
}
.login-logo { margin-bottom: 14px; }
.login-brand-logo {
  display: block;
  width: 240px; max-width: 86%;
  height: auto;
  margin: 4px auto 14px;
}
.login-logo-text { font-family: var(--ep-font); letter-spacing: .04em; color: var(--ep-navy); }
.login-logo-text:empty { display: none; }
.login-logo-sub { font-family: var(--ep-font); color: var(--ep-slate); font-size: 13px; }

.login-screen .form-label { font-family: var(--ep-font); color: var(--ep-navy); font-weight: 600; }
.login-screen .form-input { font-family: var(--ep-font); border-radius: 8px; }
.login-screen .form-input:focus {
  border-color: var(--ep-teal);
  box-shadow: 0 0 0 3px var(--ep-teal-20);
  outline: none;
}
.login-screen .pw-toggle:hover { color: var(--ep-deep-teal); }

/* navy on teal is 6.0:1, so the button text stays readable */
#login-btn {
  background: var(--ep-teal);
  border-color: var(--ep-teal);
  color: var(--ep-navy);
  font-family: var(--ep-font);
  font-weight: 700;
  border-radius: 8px;
}
#login-btn:hover, #login-btn:focus-visible { background: var(--ep-deep-teal); border-color: var(--ep-deep-teal); color: #fff; }
#login-btn:disabled { opacity: .7; }

/* ════════════════════════════════════════════════════════════════
 * Phase 2: the whole app. Only colour variables, the font and the sidebar.
 * Status colours (green, amber, red, purple) are deliberately unchanged.
 * ════════════════════════════════════════════════════════════════ */
:root {
  --bg:            #F4F6F8;   /* Cloud */
  --surface:       #FFFFFF;
  --surface-2:     #EEF1F4;
  --border:        #E2E6EB;
  --border-strong: #C9CFD7;
  --text:          #0F1729;   /* Easy Navy */
  --text-2:        #3A4152;
  --text-3:        #5B6273;   /* Slate */
  --accent:        #087C7A;   /* Deep Teal: 5.0:1 with white, safe for buttons and small text */
  --accent-fg:     #FFFFFF;
  --blue:          #087C7A;   /* links and info accents follow the brand */
  --blue-light:    #E7F5F5;
  --blue-border:   #CFEDED;   /* Teal 20 */
}
body, button, input, select, textarea { font-family: var(--ep-font); }

/* ── navy sidebar: the sidebar redefines the variables its own (and inline) styles use ── */
#sidebar {
  --text:    #FFFFFF;
  --text-2:  #C9CED8;
  --text-3:  #A3AAB8;
  --border:  rgba(255, 255, 255, .12);
  --bg:      rgba(255, 255, 255, .07);
  --surface: var(--ep-navy);
  --accent:  var(--ep-teal);
  background: var(--ep-navy);
  border-right: 0;
  color: #FFFFFF;
}
#sidebar .nav-item { color: #C9CED8; }
#sidebar .nav-item:hover { background: rgba(255, 255, 255, .07); color: #FFFFFF; }
#sidebar .nav-item.active { background: var(--ep-teal); color: var(--ep-navy); font-weight: 600; }  /* navy on teal: 6.0:1 */
#sidebar .nav-logo .nav-logo-sub { color: #6ECAC8; }                                                 /* Teal 60 */
#sidebar .nav-avatar { background: var(--ep-teal); color: var(--ep-navy); }

/* the agency's logo sits on a white tile, so dark, light and white-box logos all show */
#sidebar #nav-logo-img {
  max-height: 56px !important;
  max-width: 100% !important;
  background: #FFFFFF;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 6px;
}

/* easyprop at the foot of the sidebar (160 px: the manual's minimum for the full logo on screen) */
.nav-powered {
  display: block;
  padding: 10px 4px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}
.nav-powered img { width: 160px; max-width: 100%; height: auto; display: inline-block; }
