/* Fast Onboarding V2 — compact org-blue role cards inside login box */

.fov2 {
  margin: 0 0 .55rem;
  padding: .45rem .5rem;
  border-radius: 12px;
  background: rgba(29, 111, 216, 0.05);
  border: 1px solid rgba(29, 111, 216, 0.12);
}

body:not(.login-portal) .fov2,
.auth-box .fov2 {
  background: rgba(29, 111, 216, 0.04);
  border-color: rgba(21, 101, 200, 0.12);
}

.fov2__head {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: #123f86;
  line-height: 1.35;
}

.fov2__roles {
  display: grid;
  gap: .4rem;
}

.fov2__role {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  width: 100%;
  text-align: right;
  padding: .58rem .7rem .58rem .65rem;
  border-radius: 12px;
  border: 1px solid rgba(29, 111, 216, 0.28);
  background:
    linear-gradient(135deg, rgba(29, 111, 216, 0.14) 0%, rgba(18, 63, 134, 0.08) 55%, rgba(234, 242, 253, 0.95) 100%);
  color: #0b1f3a;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 8px rgba(29, 111, 216, 0.08);
}

.fov2__role:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 111, 216, 0.48);
  background:
    linear-gradient(135deg, rgba(29, 111, 216, 0.2) 0%, rgba(63, 150, 244, 0.14) 50%, rgba(234, 242, 253, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 16px rgba(29, 111, 216, 0.16);
}

.fov2__role:active {
  transform: translateY(0) scale(0.99);
}

.fov2__role-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  min-width: 0;
  flex: 1;
}

/* Visual LEFT in RTL: icon is second flex child */
.fov2__role-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #1d6fd8 0%, #123f86 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 10px rgba(29, 111, 216, 0.28);
}

.fov2__role-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.fov2__role-title {
  font-weight: 800;
  font-size: .86rem;
  line-height: 1.3;
  color: #123f86;
}

.fov2__role-sub {
  font-size: .73rem;
  font-weight: 500;
  line-height: 1.4;
  color: #3d5168;
}

.fov2__name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}

.fov2__name-row .form-group {
  margin-bottom: .5rem;
}

.fov2__fields .form-group {
  margin-bottom: .5rem;
}

.fov2__fields label {
  margin-bottom: .28rem !important;
  font-size: .76rem !important;
}

.fov2__fields input {
  padding: .68rem .8rem !important;
  border-radius: 11px !important;
  font-size: .88rem !important;
}

.fov2__hint {
  margin-top: .22rem;
  font-size: .72rem;
  opacity: .78;
  line-height: 1.4;
  color: #5b6b80;
}

.fov2 .legal-consent {
  margin: .2rem 0 .15rem !important;
  padding: .55rem .65rem !important;
  border-radius: 10px !important;
  background: rgba(234, 242, 253, 0.65) !important;
  border-color: rgba(29, 111, 216, 0.18) !important;
}

.fov2 .legal-consent label {
  font-size: .78rem !important;
  line-height: 1.55 !important;
}

/* Compact login glass while FOV2 is open + keep actions reachable */
body.login-portal .lp-glass:has(.fov2) {
  max-height: min(90vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.25rem 1.1rem;
  -webkit-overflow-scrolling: touch;
}

body.login-portal .lp-glass:has(.fov2) .lp-glass__logo {
  margin-bottom: .7rem;
}

body.login-portal .lp-glass:has(.fov2) .lp-glass__logo img {
  max-height: 48px;
  max-width: min(200px, 100%);
}

body.login-portal .lp-glass:has(.fov2) .lp-glass__head {
  margin-bottom: .7rem;
}

body.login-portal .lp-glass:has(.fov2) .lp-glass__head h1 {
  font-size: 1.12rem;
  margin-bottom: .2rem;
}

body.login-portal .lp-glass:has(.fov2) .lp-glass__head h2 {
  font-size: 1.12rem;
  margin-bottom: .2rem;
}

body.login-portal .lp-glass:has(.fov2) .lp-glass__head p {
  font-size: .8rem;
  line-height: 1.5;
}

body.login-portal .lp-glass:has(.fov2) .lp-form .form-group {
  margin-bottom: .7rem;
}

body.login-portal .lp-glass:has(.fov2) .lp-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: .7rem;
  padding-top: .55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
  gap: .45rem;
}

body.login-portal .lp-glass:has(.fov2) .lp-btn {
  padding: .72rem .9rem;
  font-size: .9rem;
}

@media (max-width: 420px) {
  .fov2__name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .fov2__role {
    padding: .5rem .58rem;
    gap: .55rem;
  }

  .fov2__role-icon {
    width: 2.15rem;
    height: 2.15rem;
  }
}
