/* BringHR Enterprise Login & Role Dashboard Styles - Pixel-Perfect Edition */
.login-page-container {
  display: none;
  min-height: 100vh;
  width: 100%;
  background: #f8fafc;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  position: relative;
  overflow-x: hidden;
}

body.page-login {
  background: #f8fafc !important;
  overflow-x: hidden;
}

body.page-login .app-shell,
body.page-login .sidebar,
body.page-login .side-panel,
body.page-login .topbar,
body.page-login .workspace-tabs,
body.page-login .page-content,
body.page-login .page-heading,
body.page-login #employee-home-nav {
  display: none !important;
}

body.page-login .login-page-container {
  display: flex !important;
}

/* Split-screen layout */
.login-split-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Left Hero Pane */
.login-hero-pane {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 56px 36px;
  background: linear-gradient(145deg, #fffaf6 0%, #f1f6fe 55%, #e8f0fe 100%);
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
}

/* Ambient glow on left hero */
.login-hero-pane::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -60px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.16) 0%, rgba(255, 183, 77, 0.06) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-hero-pane::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.14) 0%, rgba(66, 133, 244, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-brand-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px rgba(37, 99, 235, 0.12));
}

.hero-brand-badge {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.06);
}

/* Center Hero Copy */
.hero-content-body {
  position: relative;
  z-index: 2;
  margin: 20px 0;
  max-width: 560px;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-bottom: 16px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.hero-main-title {
  font-family: 'Manrope', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1.3px;
  color: #0b192c;
  margin: 0 0 14px;
}

.hero-highlight-orange {
  display: inline-block;
  color: #ff5722;
  background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  display: inline-block;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

.hero-subtitle-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

/* Hero Feature Cards */
.hero-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  padding: 9px 15px;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s;
}

.hero-benefit-item:hover {
  background: #ffffff;
  transform: translateX(4px);
}

.hero-benefit-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: #eff6ff;
  color: #2563eb;
  flex-shrink: 0;
}

.hero-benefit-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.hero-benefit-copy span {
  font-size: 11px;
  color: #64748b;
}

/* Industrial Trust Badge overlay (Image 1 style) */
.hero-trust-circle-badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  color: #ffffff;
  margin-top: 8px;
}

.trust-circle-stars {
  color: #fbbf24;
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.trust-circle-text {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  color: #f8fafc;
}

.trust-circle-sub {
  font-size: 8.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: 3px;
  letter-spacing: 0.6px;
}

.hero-footer-note {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: #64748b;
}

/* Right Auth Container Pane */
.login-auth-pane {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: #f8fafc;
  overflow-y: auto;
}

.ambient-blob-1 {
  position: absolute;
  top: 10%;
  right: 6%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.75) 0%, rgba(239, 246, 255, 0.25) 70%, transparent 100%);
  pointer-events: none;
}

.ambient-blob-2 {
  position: absolute;
  bottom: 6%;
  left: 6%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 237, 232, 0.75) 0%, rgba(255, 247, 237, 0.25) 70%, transparent 100%);
  pointer-events: none;
}

/* The Auth Card */
.auth-card-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 530px;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #eef2f6;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.03);
  padding: 28px 34px 22px;
  transition: all 0.25s ease;
}

/* Header */
.auth-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.auth-header-title {
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin: 0;
}

.auth-header-action {
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  text-align: right;
  white-space: nowrap;
  padding-top: 2px;
}

.auth-header-link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  margin-left: 2px;
}

.auth-header-link:hover {
  text-decoration: underline;
}

/* Role Selection Dashboard */
.role-dashboard-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 15px;
}

.role-dashboard-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.role-tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.role-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 3px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 9px;
  color: #475569;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
}

.role-tab-btn:hover {
  border-color: #93c5fd;
  color: #1e293b;
  background: #f0f7ff;
}

.role-tab-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.role-tab-icon {
  font-size: 14px;
}

.role-tab-btn.is-active .role-tab-icon {
  transform: scale(1.1);
}

/* Active Role Persona Info Callout */
.role-persona-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
  font-size: 11px;
}

.role-persona-summary {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.role-persona-name {
  font-weight: 700;
  color: #0f172a;
}

.role-persona-sub {
  font-size: 10px;
  color: #64748b;
}

.quick-demo-fill-btn {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-demo-fill-btn:hover {
  background: #dbeafe;
  border-color: #bfdbfe;
}

/* Radio Switcher (Work Email vs Employee Code - Image 1) */
.auth-mode-radio-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.auth-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.auth-radio-label input[type='radio'] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  display: grid;
  place-content: center;
  transition: all 0.15s;
  background: #ffffff;
}

.auth-radio-label input[type='radio']:checked {
  border-color: #2563eb;
}

.auth-radio-label input[type='radio']:checked::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

/* Inputs Group */
.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 12px;
}

.auth-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.auth-field-label b {
  color: #ef4444;
  margin-left: 2px;
}

.auth-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f0f5ff;
  border: 1.5px solid #dbe6fb;
  border-radius: 11px;
  padding: 0 12px;
  transition: all 0.18s ease;
}

.auth-input-box:focus-within {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.auth-input-box input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: #0f172a;
  font-weight: 500;
}

.auth-input-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.auth-field-icon {
  color: #64748b;
  font-size: 15px;
  margin-left: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.auth-eye-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.auth-eye-btn:hover {
  color: #1e293b;
}

/* Options row */
.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12.5px;
}

.auth-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.auth-remember-label input[type='checkbox'] {
  width: 15px;
  height: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #2563eb;
}

.auth-forgot-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

/* Submit CTA */
.auth-submit-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  border: none;
  border-radius: 11px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.26);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 12px;
}

.auth-submit-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  filter: brightness(1.04);
}

.auth-submit-btn:active {
  transform: translateY(0.5px);
}

/* Terms disclaimer */
.auth-terms-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 14px;
}

.auth-terms-disclaimer input[type='checkbox'] {
  margin-top: 1px;
  accent-color: #2563eb;
}

/* Divider */
.auth-divider-box {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
}

.auth-divider-box::before,
.auth-divider-box::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider-box span {
  padding: 0 10px;
}

/* SSO grid */
.auth-sso-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.auth-sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.auth-sso-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.auth-sso-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OTP button */
.auth-otp-btn {
  width: 100%;
  height: 38px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 14px;
  transition: all 0.16s;
}

.auth-otp-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Compliance strip */
.auth-compliance-card {
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 11px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  margin-bottom: 12px;
}

.compliance-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #1e3a8a;
}

.compliance-badge-icon {
  font-size: 15px;
}

/* Help & legal */
.auth-help-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 10px;
}

.auth-help-row a,
.auth-help-row button {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.auth-help-row a:hover,
.auth-help-row button:hover {
  text-decoration: underline;
}

.auth-footer-legal {
  text-align: center;
  font-size: 10.5px;
  color: #94a3b8;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.auth-footer-legal a {
  color: #64748b;
  text-decoration: none;
}

.auth-footer-legal a:hover {
  text-decoration: underline;
}

.auth-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* In-App Role Switcher Pill & Dropdown in Topbar */
.topbar-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.topbar-role-employee {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.topbar-role-hr {
  background: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.topbar-role-admin {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.topbar-role-superadmin {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* User Switcher Dropdown Modal */
.role-switch-modal-card {
  width: min(100%, 480px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
  padding: 24px;
}

.role-switch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.role-switch-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.role-switch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.role-switch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
}

.role-switch-item:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

.role-switch-item.is-current {
  border-color: #2563eb;
  background: #eff6ff;
}

.role-switch-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-switch-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
}

.role-switch-copy strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.role-switch-copy span {
  font-size: 11.5px;
  color: #64748b;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .login-split-layout {
    flex-direction: column;
  }
  .login-hero-pane {
    padding: 32px 24px;
  }
  .hero-main-title {
    font-size: 30px;
  }
  .login-auth-pane {
    padding: 28px 20px;
  }
}

@media (max-width: 640px) {
  .hero-trust-circle-badge {
    width: 130px;
    height: 130px;
  }
  .auth-card-box {
    padding: 20px 16px;
  }
  .role-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-sso-grid {
    grid-template-columns: 1fr;
  }
  .auth-compliance-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* Clean Topbar: Hide demo pills, role badges & switch buttons */
.environment-pill, #environment-pill, .topbar-role-badge, #topbar-role-badge {
  display: none !important;
}

/* Auth button: sleek Sign out button */
.auth-button {
  min-height: 32px !important;
  padding: 0 14px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  transition: all 0.15s ease !important;
}
.auth-button:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #dc2626 !important;
}

/* 4 Distinct Role Cards Grid on Login Page */
.role-accounts-section {
  margin-bottom: 16px;
}
.role-accounts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.role-category-filter {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 2.5px;
  gap: 3px;
}
.role-cat-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.role-cat-btn:hover {
  color: #0f172a;
}
.role-cat-btn.is-active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.role-accounts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 275px;
  overflow-y: auto;
  padding-right: 4px;
}
.role-accounts-grid::-webkit-scrollbar {
  width: 5px;
}
.role-accounts-grid::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.role-accounts-grid::-webkit-scrollbar-track {
  background: #f8fafc;
}
.role-card-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.role-card-item:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.role-card-item.is-selected {
  border-color: #2563eb;
  background: #f0f7ff;
  box-shadow: 0 0 0 1.5px #2563eb;
}
.role-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.role-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
}
.role-card-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  overflow: hidden;
}
.role-card-titles strong {
  font-size: 11.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-card-titles small {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-card-pill {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  border: 1px solid transparent;
  line-height: 1.1;
  white-space: nowrap;
}
.role-card-check {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 1.5px 5px;
  border-radius: 9999px;
  white-space: nowrap;
}
.role-card-creds {
  font-size: 10.5px;
  line-height: 1.35;
  border-top: 1px dashed #e2e8f0;
  padding-top: 4px;
  margin-top: 2px;
}
.role-card-creds code {
  color: #2563eb;
  font-weight: 700;
  font-family: monospace;
  font-size: 10px;
  word-break: break-all;
}
.role-card-instant-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.role-card-instant-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.role-selected-banner {
  margin-top: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
}
.role-persona-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}
