/* Dawrio identity: local, font-independent SVGs and restrained brand surfaces. */
:root {
  --brand-forest: #173b34;
  --brand-teal: #08796c;
  --brand-mint: #add8c6;
  --brand-pearl: #f4f8f5;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: normal;
  direction: ltr;
  unicode-bidi: isolate;
}
.brand-image { display: block; width: 168px; height: auto; max-width: 100%; }
.brand-tagline { color: #52685f; font-size: 11px; font-weight: 550; line-height: 1.5; letter-spacing: .35px; }
.sidebar .brand { padding: 0 12px 23px; }
.sidebar .brand-image { width: 168px; }
.sidebar .brand-tagline { padding-inline-start: 2px; }
.brand--inverse .brand-image { width: 228px; }
.brand--inverse .brand-tagline { color: #c6ded1; font-size: 13px; }
.brand--portal .brand-image { width: 140px; }
.mobile-brand, .login-identity { display: none; }
.brand-compact-image { display: none; }

.login-art {
  background: radial-gradient(ellipse at 15% 0%, #265b4a 0, transparent 60%), #153d34;
  padding: 50px 10%;
  isolation: isolate;
}
.login-art::before {
  inset: auto -80px -125px auto;
  width: 440px;
  height: 440px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url('/static/brand/dawrio-mark-inverse.svg') center / contain no-repeat;
  transform: rotate(-14deg);
  opacity: .045;
  z-index: -1;
  pointer-events: none;
}
.login-art::after { display: none; }
.login-art .brand { padding: 0; }
.login-art h1 { max-width: 490px; color: #f4f8f5; font-weight: 520; }
.login-art p { color: #c6ded1; font-size: 16px; line-height: 1.75; }
.login-art .eyebrow { color: #add8c6; font-size: 12px; }
.login-art small { color: #c6ded1; font-size: 11px; letter-spacing: 1.4px; }
.login-art .badge { color: #d8ebdf; background: #ffffff0a; border-color: #ffffff29; font-size: 12px; }
.login-art .badge.green { color: #ecf6ef; background: #ffffff0f; }
.login-form h1 { color: var(--brand-forest); }
.login-main { min-width: 0; }
.login-form { min-width: 0; }
.login-form .eyebrow { color: #52685f; font-size: 11px; }
.login-form .sub { color: #52685f; font-size: 13px; line-height: 1.7; }
.login-form .field { color: var(--brand-forest); }
.login-form input { background: #fff; border-color: #728a7d; }
.portal-topbar { flex-wrap: wrap; height: auto; min-height: 79px; padding-block: 16px; }
.portal-topbar .sub { font-size: 13px; margin-inline-start: auto; }

@media (max-width: 800px) {
  .login-layout { background: radial-gradient(ellipse at 0 0, #e4eee4, transparent 65%), #f4f8f5; }
  .login-main { padding: 32px 20px; align-items: center; grid-template-columns: minmax(0, 1fr); }
  .login-form { width: 100%; max-width: 420px; padding: 30px 26px; }
  .login-identity { display: block; margin-bottom: 32px; }
  .login-identity .brand-image { width: 172px; }
  .login-identity .brand-tagline { font-size: 12px; }
  .mobile-brand { display: flex; margin-inline-end: auto; }
  .mobile-brand .brand-image { width: 116px; }
  .topbar { gap: 10px; padding-inline: 14px; }
  .top-actions { margin-inline-start: 0; gap: 6px; }
  .topbar > .mobile-menu { flex: 0 0 44px; }
  .portal-topbar { gap: 12px; }
  .portal-topbar .brand--portal .brand-image { width: 124px; }
  .portal-topbar .sub { flex: 1 1 120px; margin-inline-start: 0; }
}
@media (max-width: 359px) {
  .mobile-brand .brand-image { display: none; }
  .mobile-brand .brand-compact-image { display: block; width: 32px; height: 32px; }
  .login-main { padding: 20px 12px; }
  .login-form { padding: 26px 20px; }
}
@media (forced-colors: active) {
  .brand-image, .brand-compact-image { background: #fff; border-radius: 3px; }
  .brand--inverse .brand-image { background: #173b34; }
}

/* Dawrio: blue for product actions, mint for the flowing identity.
   Existing clinical status colors keep their established meaning. */
:root{
  --brand-forest:#1c2b47;--brand-teal:#3e4acb;--brand-mint:#51c5b2;--brand-pearl:#f6f8ff;
  --ink:#1c2b47;--muted:#52627a;--teal:#3e4acb;--teal2:#eef0ff;--line:#dce1ee;--bg:#f6f8fc;--nav:#1c2b47;
  --care-ink:#1c2b47;--care-muted:#52627a;--care-accent:#3e4acb;--care-line:#dce1ee;--care-tint:#f6f8ff;--care-control-border:#78859b;
}
body{background:radial-gradient(ellipse at 90% 0,#e8ebfc 0,transparent 44%),radial-gradient(ellipse at 10% 85%,#e8f5f1 0,transparent 48%),#f6f8fc}
.sidebar{background:linear-gradient(160deg,#f3f5ff,#eef5f7);border-color:#dce1ee}
.brand-tagline,.login-form .eyebrow,.login-form .sub{color:#52627a}
.brand--inverse .brand-tagline,.login-art p,.login-art small{color:#dce3ff}
.login-art{background:radial-gradient(ellipse at 10% 0,#4353b6 0,transparent 66%),#17284a}
.login-art h1{color:#f6f8ff}.login-art .eyebrow{color:#9ee0d0}.login-art .badge{color:#e4eaff;border-color:#ffffff38}
.login-art .badge.green{background:#ffffff13;color:#f6f8ff}
.nav.active,.nav[aria-current=page]{background:#e5e9ff;color:#2d39a1;box-shadow:inset 3px 0 #3e4acb}
[dir=rtl] .nav.active{box-shadow:inset -3px 0 #3e4acb}
.nav:hover{background:#e9edfb;color:#26355e}.nav-label{color:#5c6c83}
.workspace-label{background:#ffffffb8;border-color:#d7ddeb;color:#52627a}.workspace-label strong{color:#1c2b47}
button.primary:hover{background:#303da9;border-color:#303da9}
.welcome-banner{background:linear-gradient(110deg,#263a72,#3d49bd);color:#fff}
.welcome-banner p{color:#e3e8ff}
input:focus,textarea:focus,select:focus{border-color:#3e4acb;box-shadow:0 0 0 3px #3e4acb20}
.brand-image{aspect-ratio:285/64;object-fit:contain}
.brand-tagline{letter-spacing:0;font-size:10.5px}
.brand--inverse .brand-tagline{font-size:12px}
@media(max-width:800px){.login-layout{background:radial-gradient(ellipse at 0 0,#e6eafa,transparent 65%),#f6f8ff}}
@media(forced-colors:active){.nav.active{outline:2px solid Highlight}.brand-image,.brand-compact-image{forced-color-adjust:none}}
