.loginwrap {
  background-image:
    linear-gradient(145deg, rgb(8 30 61 / 66%), rgb(8 30 61 / 76%)),
    url("/assets/login-papua.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.profile-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #0e2a57, #1663ac);
  color: #fff;
  font-size: 14px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.profile-button-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.profile-card-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, #edf5ff, #f8fbff);
}

.profile-card-heading .profile-avatar {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
  border: 4px solid #fff;
  box-shadow: 0 3px 14px #0e2a5724;
  font-size: 24px;
}

.profile-card-heading h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-card-heading .badge {
  display: inline-flex;
  margin-top: 5px;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 24px 22px;
}

.profile-details > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.profile-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.profile-details dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  color: var(--navy);
}

.profile-tasks {
  margin: 0 24px 22px;
  padding: 16px;
  border: 1px solid #d1e4fa;
  border-radius: 12px;
  background: #eaf4ff;
}

.profile-tasks h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

.profile-tasks p {
  margin: 0;
  color: #215784;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 24px 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-photo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  cursor: pointer;
}

.profile-card > [data-logout] {
  display: block;
  width: calc(100% - 48px);
  min-height: 44px;
  margin: 0 24px 24px;
}

@media (max-width: 760px) {
  .profile-button-label {
    display: none;
  }

  .profile-trigger {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .profile-card-heading {
    gap: 14px;
    padding: 20px 16px;
  }

  .profile-card-heading .profile-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .profile-card-heading h2 {
    font-size: 19px;
  }

  .profile-details {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0 16px 18px;
  }

  .profile-tasks {
    margin: 0 16px 18px;
    padding: 14px;
  }

  .profile-actions {
    align-items: stretch;
    gap: 9px;
    margin: 0 16px 16px;
    padding-top: 15px;
  }

  .profile-photo-button {
    width: 100%;
  }

  .profile-card > [data-logout] {
    width: calc(100% - 32px);
    margin: 0 16px 18px;
  }
}
