body { background-color: #f5f7fb; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; }
.card { border-radius: 12px; }

/* Subtle enterprise background */
.auth-bg { min-height: 100vh; padding: 40px 12px; background: #f5f7fb; }

.auth-card {
  border: 1px solid #e3e7ef;
  box-shadow: 0 6px 20px rgba(16,24,40,0.06);
}

.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #e9eef8; display:flex; align-items:center; justify-content:center; color:#0d6efd; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-sub { color: #667085; font-size: .875rem; }
.brand-headline { font-weight: 650; letter-spacing: .2px; font-size: 1.25rem; line-height: 1.1; }

/* Navbar brand sizing */
.navbar-brand .brand-logo { height: 28px; }

/* Larger hero/card brand */
.brand.brand-lg .brand-logo { height: 48px; }
.brand-headline { font-weight: 650; letter-spacing: .2px; font-size: 1.25rem; line-height: 1.1; }
.brand-sub { color: #667085; font-size: .875rem; }
.muted-link { color: #667085; text-decoration: none; }
.muted-link:hover { color: #495057; text-decoration: underline; }

/* Material Symbols baseline */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  line-height: 1;
}
.brand-mark .material-symbols-rounded { font-size: 28px; }

/* Inputs comfortable on mobile */
.form-control-lg { font-size: 1rem; padding: .75rem .9rem; }

/* Select with custom caret (material-style) */
.select-with-caret { position: relative; }
.select-with-caret .form-select {
  padding-right: 2.25rem;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: none !important;
}
.select-with-caret .select-caret {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: #6c757d; font-size: 22px;
}

@media (max-width: 576px){
  .auth-bg { padding: 24px 12px; }
}
/* Divider */
.sep { border: 0; border-top: 1px dashed #e1e6ef; margin: 12px 0 16px; }

/* App context chip */
.app-context { border-radius: 10px; }

/* Header separator on login */
.header-sep { border: 0; border-top: 1px solid #e9edf5; margin: 8px 0 16px; }

/* Remembered user pill */
.remembered-box { border: 1px solid #e3e7ef; background: #f8fafc; border-radius: 10px; padding: 8px 10px; display:flex; align-items:center; justify-content:space-between; }
.remembered-box .label { color:#667085; font-size:.8rem; }
.remembered-box .name { font-weight:600; }
.remembered-box a { font-size:.8rem; }

/* App tiles on profile */
.app-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.app-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; border: 1px solid #e3e7ef; border-radius: 12px; padding: 10px; background: #fff; box-shadow: 0 2px 8px rgba(16,24,40,0.05); transition: transform .06s ease, box-shadow .12s ease; }
.app-tile:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,24,40,0.08); }
.app-icon { font-size: 24px; line-height: 1; }
.app-name { margin-top: 6px; font-size: .9rem; color: #1f2937; text-align: center; }
